Skip to content

Not getting hub OnConnected/OnDisconnectedAsync calls #15

Open
@johnkwaters

Description

@johnkwaters

I switched from SignalR (AspNetCore RC1) to AzureSignalR
I use authenticated hubs (using JWT Bearer tokens in header)
When a client connects, I add the connection to a group for its Tenant (a multitenant solution, tenant is a claim in the JWT).
However - in the AzureSignalR version, my hub does not get these events.

My code defines
public override async Task OnConnectedAsync()

I noticed the sample code in FlightMap does not use async,
public override Task OnConnectedAsync()

Changing my code to use this signature still doesnt work.

Found the angular client was requesting HttpTransportType.WebSockets. When removing that ... it works!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions