I have a Microsoft.AspNetCore.SignalR.Client based SignalR .NET Client.
Once a connection is established, I would like to determine what SignalR transport mechanism is being used for the connection for Debugging purposes. I am experiencing issues on a network and need to verify the current transport mechanism under various conditions.
A variety of questions similar to this have been asked:
- How to determine which transport method/protocol Azure SignalR is using?
- Determine transport method in SignalR Core?
But their answers are not working for me. As these questions are old (4 years), and that’s in the period where SignalR had some deprecated packages and renaming. I am not certain they are relevant. They also appear to cover the server side transport type retrieval.
The core of their answer: Context.Features.Get<IHttpTransportFeature>().TransportType.ToString();
Is found within some function tests of SignalR, but once again this appears to be on the Server side, within a server side Hub.
How can this be done on the client side?