user1532573
user1532573

Reputation: 81

How do I detect the connection protocol on the server with SignalR

How do I determine if a connection is using websockets, SSE, foreverframe, or long polling on the server?

Upvotes: 2

Views: 1089

Answers (1)

Tobias
Tobias

Reputation: 2840

You can determine the transport method by getting it from the querystring in your hub, like so:

string transport = Context.QueryString["transport"]; 

Upvotes: 2

Related Questions