On SignalR .NET, we establish a connection as below between the client and server:
var connection = new HubConnection("http://mysite/");
Next, we subscribe the events and start the connection as below:
connection.Start().Wait();
What if I would like to establish a secure connection between the client and server. How can we achieve that with current features?
I noticed that there is a property type of System.Net.ICredentials
on HubConnection
class. Is this the way for this? If so, how should we handle the Auth at the server side for our Hubs?
Here is how I have mine set up:
You could of course pass in different credentials, I use DefaultNetworkCredentials