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

CloseEvent.code 1005 #19

Open
clarkk opened this issue Aug 30, 2018 · 2 comments
Open

CloseEvent.code 1005 #19

clarkk opened this issue Aug 30, 2018 · 2 comments

Comments

@clarkk
Copy link

clarkk commented Aug 30, 2018

When closing the connection from the client I always get 1005

1005
No Status Recvd | Reserved.
Indicates that no status code was provided even though one was expected.

https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent

So the client tries to reconnect because it was not a clean close..

The close code should be 1000

@arthurkushman
Copy link
Owner

Server sending the value:

const ENCODE_CLOSE = 136;

on close event and then closes the stream.

Do u know what code for 1000 for frame head I need to apply specifically on server (they r different from client in spec)?

@clarkk
Copy link
Author

clarkk commented Sep 1, 2018

No sorry.. I have not previously worked with websocket

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

No branches or pull requests

2 participants