Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Microsoft.AspNetCore.SignalR;
- using System.Threading.Tasks;
- namespace WRTCDemo.Hubs
- {
- public class ChatHub : Hub
- {
- public async Task SendMessage(string user, string message)
- {
- await Clients.All.SendAsync("ReceiveMessage", user, message);
- }
- }
- }
Add Comment
Please, Sign In to add comment