gusavila92 / java-android-websocket-client

Java/Android WebSocket Client
Apache License 2.0
148 stars 40 forks source link

how to set close connection res Code and description #24

Open RahilRK opened 3 years ago

RahilRK commented 3 years ago

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

gusavila92 commented 2 years ago

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