I need get websocket sessions count in webapi module.
I need send a message from webapi to websocket client.
how to done it?
thanks.
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.
Most helpful comment
You can use the methods
OnClientConnectedandOnClientDisconnectedto handle a list of WebSocket sessions (probably inside a staticList<WebSocketContext>) and use it from the WebAPI.