using Microsoft.AspNet.SignalR; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace GMW_RT { public partial class TestSend : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnSendAll_Click(object sender, EventArgs e) { #if false // mando segnale a tutti i clients... var hubContext = GlobalHost.ConnectionManager.GetHubContext(); hubContext.Clients.All.broadcastMessage("Admin", txtMessage.Text.Trim()); #endif Broad.cast.sendMess("GMW-RT", txtMessage.Text.Trim()); txtMessage.Text = ""; txtMessage.Focus(); lblMess.Text = "Messaggio inviato!"; } } }