When does a reconnect in signalR occur?

A hub reconnect occurs when a client goes offline then regains connectivity shortly after. SignalR configuration values largely determine the time stamps of the following examples so do not take the times verbatim. Here are several examples and their outcomes (time format m:ss) involving reconnecting behavior: When I Mention the following i am referring to … Read more

Get number of listeners, clients connected to SignalR hub

There is no way to get this count from SignalR as such. You have to use the OnConnect() and OnDisconnect() methods on the Hub to keep the count yourself. Simple example with a static class to hold the count: public static class UserHandler { public static HashSet<string> ConnectedIds = new HashSet<string>(); } public class MyHub … Read more

Calling SignalR hub clients from elsewhere in system

This is the correct way for SignalR 2.x: var context = GlobalHost.ConnectionManager.GetHubContext<MyHub>(); context.Clients.All.addMessage(message); Basically, you can use the dependency resolver for the current host to resolve the IConnectionManager interface which allows you to get ahold of the context object for a hub. Further information can be found in the official documentation.

Best practice for reconnecting SignalR 2.0 .NET client to server hub

I finally figured this out. Here’s what I’ve learned since starting this question: Background: We’re building an iOS app using Xamarin / Monotouch and the .NET SignalR 2.0.3 client. We’re using the default SignalR protocols – and it seems to be using SSE instead of web sockets. I’m not sure yet if it’s possible to … Read more

.net localhost website consistently making get arterySignalR/poll?transport=longPolling&connectionToken= calls

This is working as intended. Artery aka BrowserLink is a real-time connection from Visual Studio to all browsers running your code. It essentially allows Visual Studio to interact with every browser. For instance if you have IE, Opera, Chrome and Firefox all running your code and you’re trying to ensure cross browser correctness; instead of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)