kerryjiang / WebSocket4Net

A popular .NET WebSocket Client
Apache License 2.0
768 stars 273 forks source link

Subprotocol #37

Open dweberlj opened 9 years ago

dweberlj commented 9 years ago

I am using WebSocket4Net as a client to a nodejs server. I am getting an exception in my .NET app "subprotocol doesn't match". In node, I am using nodejs-websocket.

Any help would be greatly appreciated. Thanks

kerryjiang commented 9 years ago

Which constructor of websocket are you using?

osakishore commented 3 years ago

I am trying use this library from dotnet core console app. I am getting "subprotocol doesn't match", if i tried to add multiple subprotocols. WebSocket ws = new WebSocket(wsurl, subProtocol:"abc.v1.ca, abc.v2.ca")

In this case I'm getting below error.

subprotocol doesn't match Websocket is closed.