public override async Task OnConnectedAsync(WebSocket socket)
        {
            await base.OnConnectedAsync(socket);


            // Register Channel


            var socketId = WebSocketConnectionManager.GetId(socket);

            await SendMessageToAllAsync($"{socketId} is now connected");
        }
Ejemplo n.º 2
0
 public WebSocketHandler(WebSocketConnectionManager webSocketConnectionManager, IClusterClient clusterClient)
 {
     WebSocketConnectionManager = webSocketConnectionManager;
     this._clusterClient        = clusterClient;
 }
 public EventMessageHandler(WebSocketConnectionManager webSocketConnectionManager, IClusterClient clusterClient) : base(webSocketConnectionManager, clusterClient)
 {
 }