daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest May 16th, 2018 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top