Closed jcyuan closed 6 years ago
can we modify the line in websocketmanagermiddleware.cs from:
await _webSocketHandler.OnConnected(socket).ConfigureAwait(false);
to this?:
await _webSocketHandler.OnConnected(socket, context).ConfigureAwait(false);
actually I'm trying to add the exisiting ClaimsAuth to my Subclass. but don't know what exactly to do.
turned to SignalR so close this.
because the subclass inherits from WebSocketHandler will be injected as singleton, so I can't initialize some other services inside the constructor.
so how can I access to other service e.g. in the onConnected method?