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

how to set close connection res Code and description #24

Open
RahilRK opened this issue May 15, 2021 · 1 comment
Open

how to set close connection res Code and description #24

RahilRK opened this issue May 15, 2021 · 1 comment

Comments

@RahilRK
Copy link

RahilRK commented May 15, 2021

webSocket.close(RES_CODE,description);
This is possible in okHtttp, is it possible with this library...?

@gusavila92
Copy link
Owner

with a response code and description you mean the option to send a data body along with the close action? I'm not sure about the meaning of the okHttp rescode and description because that's a different specification but what I can do is to add the option to send data inside the close frame, and your app will be responsible of giving a meaning for that data

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