Embedio: how to get websocket module context in WebServer class?

Created on 14 May 2018  路  1Comment  路  Source: unosquare/embedio

I need get websocket sessions count in webapi module.
I need send a message from webapi to websocket client.
how to done it?
thanks.

question

Most helpful comment

You can use the methods OnClientConnected and OnClientDisconnected to handle a list of WebSocket sessions (probably inside a static List<WebSocketContext>) and use it from the WebAPI.

>All comments

You can use the methods OnClientConnected and OnClientDisconnected to handle a list of WebSocket sessions (probably inside a static List<WebSocketContext>) and use it from the WebAPI.

Was this page helpful?
0 / 5 - 0 ratings