Signalr persistent connection with query params.

Balkalita

New Member
I have a persistent connection which I would like to start with some seed info using query params. Here is the override in the connection.\[code\] protected override Task OnConnected(IRequest request, string connectionId) { //GET QUERY PARAMS HERE return base.OnConnected(request, connectionId); }\[/code\]Now I have my route setup in global.asax file which looks like this. \[quote\] RouteTable.Routes.MapConnection("myconnection", "/myconnection");\[/quote\]And the client code looks like this \[code\]var connection = $.connection('/myconnection');connection.start() .done(() => { });\[/code\]Can someone tell me how I can pass query string params to this connecton so I can read them in the override as I seem to be hitting a brick wall on this. Cheers hope someone can help,Dave
 
Back
Top