Last post Oct 22, 2018 09:49 AM by Xing Zou
Oct 20, 2018 09:40 AM|RayYago|LINK
Hello fellow user,
im trying to get into SignalR and read this article from Microsoft to SignalR.
They had a good example to push messages to clients.
What im trying to do is to handle multiple chats in one hub, but i dont know really how to do it.
For authentication i use JW-Tokens. A user can log in and gets his token.
This is the code for the hub from the article:
public class ChatHub : Hub
public async Task SendMessage(string user, string message)
await Clients.All.SendAsync("ReceiveMessage", user, message);
How could i handle multiple chats with one hub? I mean the function at the client would have every time the same name and honestly i cant the an anwser to that right now...
Oct 22, 2018 09:49 AM|Xing Zou|LINK
How could i handle multiple chats with one hub? I mean the function at the client would have every time the same name
What does "multiple chats" mean? May be you could be more specific about what result you would like to get?