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.
Смотрите видео sgcWebSockets NET Nuget онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь eSeGeCe 16 Ноябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 893 раз и оно понравилось like людям.