Exemple #1
0
        public override async Task OnConnected(WebSocket socket)
        {
            await base.OnConnected(socket);

            var socketId = WebSocketConnectionManager.GetId(socket);

            await SendMessageToAllAsync($"{socketId} is now connected");
        }
Exemple #2
0
 public WebSocketHandler(WebSocketConnectionManager webSocketConnectionManager)
 {
     WebSocketConnectionManager = webSocketConnectionManager;
 }
Exemple #3
0
 public ProcessMessageHandler(WebSocketConnectionManager webSocketConnectionManager)
     : base(webSocketConnectionManager)
 {
 }