TooTallNate / Java-WebSocket

A barebones WebSocket client and server implementation written in 100% Java.
http://tootallnate.github.io/Java-WebSocket
MIT License
10.47k stars 2.57k forks source link

Get response from refused websocket client connection #1302

Open Matix-Media opened 1 year ago

Matix-Media commented 1 year ago

Describe what you would like to know or do When I connect to a websocket server, and the server refuses the connection with status code 400 and sends some additional information, why it refused it, inside of http body, how can I get that body?

Describe the solution you'd considered I tried the onClose but they body cant be found in there.