Skip to content

Expose ConnectionId on SignalR Clients #8681

Closed
@mikaelm12

Description

@mikaelm12

We've had users ask about how to get a client's connectionId Our current guidance to users on how to get it is to create a Hub method to return it to them e.g.

public string GetConnectionId() 
{
    return Context.ConnectionId
}

Which is less than ideal.

Another thing we planned on doing for the onReconnected events is making it have a single parameter which would be the client's new connectionId.

  • .NET
  • Java
  • JavaScript

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedacceptedThis issue has completed "acceptance" testing (including accessibility)area-signalrIncludes: SignalR clients and serversfeature-client-javaRelated to the SignalR Java clientfeature-client-javascriptRelated to the SignalR JS clientfeature-client-netRelated to the SignalR .NET client

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions