SignalR/SignalR — Issue #142: Overriding the connectionid
Author: raghav-khunger
Created: 2012-01-21 18:57:37+00:00
State: open

Hi,

I am making a class say Test.cs which derives from SignalR.Hubs.Hub.cs . When I run my application the url using SignalR becomes:

http://localhost:50378/signalr/send?transport=serverSentEvents&connectionId=92e8b7a5-65e9-4d5f-aaa1-0a0de63aff31

Is there a way to override the behaviour of generation of connectionid . I want to give the ids based on my application probably username. I have to send messages to users via the below code:
var clients = Hub.GetClients();
clients[].mymethod("test");
I have two questions here:
1. Is this a good practice to use username there?
2. How to override the generation of connection id?