This contract is no longer available in v1.
Extensibility has nothing similar.
Client – JavaScript Library, Persistent Connections claims to be able to do so, yet this code doesn’t work:
connection.id = 'id_set_by_client_side_code';
Documentation says:
Gets or sets the client id for the current connection.
Is there an issue or am I missing something?
You no longer get control over the connection id in SignalR. People abused it by trying to share the connection id across multiple pages by making it something stable (which leads to buggy behavior). In SignalR 1.0, connection ids are always random. The only thing you can do is add a prefix.