Welcome to a new eSeGeCe learning session. Today we will show how install sgcWebSockets .NET MacOS 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 OSX64 nuget онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал eSeGeCe 16 Ноябрь 2021. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 75 раз и оно понравилось like посетителям.