Exemplo n.º 1
0
        public async Task SendServerMessage()
        {
            // 3. Send a message from the chat server to all clients.
            await _hubProxy.SendAllAsync("ReceiveMessage", "Server", "Hello, Client!");

            // 4. Send a message to a specific group
            await _hubProxy.SendGroupAsync("SpecialUsers", "ReceiveMessage", "Server", "Hello, special Client!");
        }
Exemplo n.º 2
0
 public async Task SendMessageToAnotherHub(string message)
 {
     await _anotherHubProxy.SendAllAsync("MethodOnOtherClients", "Some message param");
 }