Last post Aug 29, 2016 01:13 PM by boblautenbach
Aug 16, 2016 08:09 PM|boblautenbach|LINK
I have signalr 18.104.22.168 running on Azure server
Here is my server code for MessageHub: Hub
public Task Join(string name)
//maybe check that it is a valid center?
return Groups.Add(Context.ConnectionId, name);
public void SendMessage(string name, string message)
I have 2 separate clients connecting. One client will register to join group "foo" (ClientA-foo) and the other will join group "bar" (clientB-bar). Both clients are .Net-based and running the latest version of the signalr client (22.214.171.124). One client is
a console app (clientB-bar), the other is running Windows 10 IoT Core on a Rasp Pi 3 (clientA-foo).
When I have clientA-foo Invoke SendMessage("bar", "Hello") from its proxy, my ClientB-bar doesn't always get the message on the On(OnMessageSent). Again, its random...Sometimes its works and sometimes its doesn't. Is there something I am missing to make
it more consistent?
Here is ClientA-foo call
List<string> l = new List<string>();
Here is clientB-bar listener
rproxy.On("OnMessageSent", (x) =>
Aug 19, 2016 02:31 AM|Fei Han - MSFT|LINK
Firstly, you could refer to the following article to enable tracing and view diagnostic information.
Secondly, it seems that Azure enable remote debugging, you could check if hub methods could be fire as expected.
Aug 19, 2016 02:33 AM|boblautenbach|LINK
Thanks..did both. Actually 'tailed" the traces to my log pc to watch. The hub methods are being called but it seems like the hub thinks the 2 clients are not in the same group (which they are).
Here's a test client ....Spin up one and then spin up a second one. You may have to spin up and shut down the second one a few times to see this issue but eventually you will see it.
Aug 19, 2016 03:31 PM|boblautenbach|LINK
Is it at all possible that the Server Hub is creating multiple instance of itself, thereby causing some connections to join the group in one instance and other connections to join the group in another instance. For example, as I type this, I have 4 console
apps up running: console1 and console3 can send and receive messages to/from group "foo" and console2 and console4 can send and send/receive to/from group "foo". But they only work in those pairs, meaning all 4 of the console apps should see all the messages
(they are in the same group) but that is not happening. Its as if each pair of consoles apps is connected to a completely different hub instance.
Aug 29, 2016 01:13 PM|boblautenbach|LINK
Researched more and found the answer. Posted the details here: http://stackoverflow.com/questions/39129372/signalr-groups-not-always-communicating