Closed jonclare closed 8 years ago
Thanks for the commit !
No worries. I've been doing some work recently on getting WampSharp working with a PCL websocket library, and this change was needed.
If you're able to do a release at some point with the sub protocol changes that would greatly assist me as I don't want to put the stuff from my fork onto NuGet and create a potentially confusing alternative to your library!
The
WebSocketResponseHandshake
class provides the ability to set the subprotocol, but a default handshake is created during theWebSocketClientBase.OpenAsync
method and as far as I can tell it's not possible to set the subprotocol when opening the connection.This is needed to connect to certain servers.