web_socket icon indicating copy to clipboard operation
web_socket copied to clipboard

How to get a websocket connection handshake status code?

Open selecky opened this issue 1 year ago • 0 comments

Hi @dvmatyun ,

When connecting to a websocket, I would like to intercept the handshake status code (e.g., 101 WebSocket Protocol Handshake, 401 Unauthorized, 500 Internal Server Error) to inform the user of the reason why the connection was unsuccessful, such as invalid credentials.

Is there a way how to get these handshake details?

Thanks.

selecky avatar Oct 03 '24 19:10 selecky