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

WebSocket API close frame payload #2276

Closed
vietj opened this issue Jan 16, 2018 · 0 comments
Closed

WebSocket API close frame payload #2276

vietj opened this issue Jan 16, 2018 · 0 comments
Milestone

Comments

@vietj
Copy link
Member

vietj commented Jan 16, 2018

The WebSocket API should allow to set and receive the close frame payload.

ws.close(1000); // Close with a status code
ws.close(1000, "some reason");

Close frame should be propagated on the client, i.e before calling the close handler the websocket should forward a close frame with the status and reason.

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

1 participant