How to implement subprotocol in my .net Application
App Development3 posts299 views3 likesLast activity Apr 2022
IQ
Iqra_Mustafa1OP
Apr 2022MA
Mate_Varga
Apr 2022Subprotocols should not be appended to the URI. You should add them with AddSubProtocol method to ClientWebSocketOptions which you can access through the Options property of your ClientWebSocket instance. Since subprotocols are negotiated during handshake, please make sure you add subprotocols before you connect.
Hope this helps,
Mate
IQ
Iqra_Mustafa1
Apr 2022Thanks for the help. It worked.

