Guest User

Untitled

a guest
May 16th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. using System;
  2. using Microsoft.AspNetCore.SignalR;
  3. using System.Threading.Tasks;
  4.  
  5. namespace WRTCDemo.Hubs
  6. {
  7. public class ChatHub : Hub
  8. {
  9. public async Task SendMessage(string user, string message)
  10. {
  11. await Clients.All.SendAsync("ReceiveMessage", user, message);
  12. }
  13. }
  14. }
Add Comment
Please, Sign In to add comment