Welcome to a new eSeGeCe learning session. Today we will show how install sgcWebSockets .NET Community Edition from a nuget package and how connect to a WebSocket server.
First create a new .NET project and access to the menu Manage Nuget Packages. Search the package sgcWebSockets and press the install button. This will install the sgcWebSockets .NET Community Edition package into your project.
Now you can make uses of the esegece.sgcWebSockets package and create a new websocket client.
Create a new instance of TsgcWebSocketClient, we will use the Public esegece WebSocket server, so set the Host to www.esegece.com and port to 2052. Then handle the event OnConnect to be notified when the client has connected to server.
And that's all, press the button to start a new websocket connection and you will get a message that client has been connected.
Watch video sgcWebSockets NET Nuget online without registration, duration hours minute second in high quality. This video was added by user eSeGeCe 16 November 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 893 once and liked it like people.