I have a question about signalR simple chat application. We have an app working on local host and people can join and chat with each other. Here is the problem we could not specify which message will send to which user? I mean we could not create room?
here is the code part
private void BroadCastMessage(string message)
{
var clients = Hub.GetClients<ChatHub>();
clients.newMessage(message);
clients.isAlive();
}
public void GetClients()
{
System.Web.Script.Serialization.JavaScriptSerializer oSerializer = new System.Web.Script.Serialization.JavaScriptSerializer();
string sJSON = oSerializer.Serialize(Clients);
var clients = Hub.GetClients<ChatHub>();
clients.userList(sJSON);
}