Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wss HTTP/1.1 101 #157

Open
cfz1025 opened this issue Aug 3, 2019 · 2 comments
Open

wss HTTP/1.1 101 #157

cfz1025 opened this issue Aug 3, 2019 · 2 comments

Comments

@cfz1025
Copy link

cfz1025 commented Aug 3, 2019

follow is my code:
m_WebSocket = new WebSocket(webSocketUrl);
m_WebSocket.Opened += new EventHandler(m_WebSocket_Opened);
m_WebSocket.MessageReceived += new EventHandler(m_WebSocket_MessageReceived);
m_WebSocket.Error += new EventHandler<SuperSocket.ClientEngine.ErrorEventArgs>(m_WebSocket_Error);
m_WebSocket.Closed += new EventHandler(m_WebSocket_Closed);
m_WebSocket.Open();
i use wss in C# wpf project, but this result is "HTTP/1.1 101 "

@stefxx
Copy link

stefxx commented Jan 20, 2021

Hi!

I know this is an old issue, but I am facing the exact same problem. I get an "HTTP/1.1 101" on the Error Eventhandler, followed by an Closed event. Since 101 means "switching protocols", I would think this is expected and should not lead to an error and disconnection.

I am using WebSocket4Net 14.1. Thanks!

@alexnum
Copy link

alexnum commented May 26, 2021

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants