public override Task OnDisconnected(WebSocket socket) { foreach (var room in rooms) { room.Value.Remove(WebSocketConnectionManager.GetId(socket)); } return(base.OnDisconnected(socket)); }
protected WebSocketHandler(WebSocketConnectionManager webSocketConnectionManager) { WebSocketConnectionManager = webSocketConnectionManager; }
public NotificationsMessageHandler(WebSocketConnectionManager webSocketConnectionManager, GlobalConfig config) : base(webSocketConnectionManager) { this.config = config; }