public async Task InvokeAsync(WebSocketMessageContext context)
        {
            if (context.Command == WebSocketCommands.Connect)
            {
            }

            // Sending incoming data from Backend zone to the Clients (Browsers)
            // await _connectionManager.BroadcastAsync(context);

            await _connectionManager.SendAsync(context.GetConnectionId(), context);
        }
Exemplo n.º 2
0
 public async Task InvokeAsync(WebSocketMessageContext context)
 {
     var connection = context.GetConnectionId();
     await _connectionManager.BroadcastAsync(context);
 }