Exemplo n.º 1
0
 public ActionResult SendMessageToGroup1()
 {
     MySignalrHubClient.SignalrHub(new SignalrHubClient()
     {
         method  = "SendMessageToMyGroup",
         message = new { From = "00000000-0000-0000-0000-000000000000", Content = "SendMessageToGroup1", GroupId = "1" },
     });
     return(Content(""));
 }
Exemplo n.º 2
0
 public ActionResult SendMessageToUser()
 {
     MySignalrHubClient.SignalrHub(new SignalrHubClient()
     {
         method  = "SendMessageToUser",
         message = new { From = "00000000-0000-0000-0000-000000000000", To = "00000000-0000-0000-0000-000000000000", Content = "SendMessageTo1" },
     });
     return(Content(""));
 }
Exemplo n.º 3
0
 public ActionResult SendMessageToGroup1and2()
 {
     MySignalrHubClient.SignalrHub(new SignalrHubClient()
     {
         method  = "SendMessageToGroups",
         message = new { From = "00000000-0000-0000-0000-000000000000", Content = "SendMessageToGroup1and2", ToGroupIds = new List <string> {
                             "1", "2"
                         } },
     });
     return(Content(""));
 }