daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest May 16th, 2018 99 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top