public void RemoveWebSocket(WebSocket webSocket) { // Remove the websocket from the store WebSocketStore.RemoveWebSocketAsync(GetWebSocketKey(), webSocket); }
public IEnumerable <WebSocket> GetRequestWebSockets() { // Get the websockets from the store return(WebSocketStore.GetWebSocketsAsync(GetWebSocketKey()).Result); }
public void AddWebSocket(WebSocket webSocket) { // Add the websocket to the store WebSocketStore.AddWebSocketAsync(GetWebSocketKey(), webSocket); }