jakobilobi / wsstat

Check the status of a WebSocket endpoint.
MIT License
5 stars 1 forks source link

Clearer response when connection isn't established #2

Closed jakobilobi closed 2 months ago

jakobilobi commented 5 months ago

At the moment, if the connection isn't able to be established you get something like:

2024/04/12 09:28:45 Error measuring latency: websocket: bad handshake

It would be more helpful if the error message could contain more details. E.g. is there an HTTP code from the initial request to open the connection? Or is there an issue with authentication?

jakobilobi commented 2 months ago

Error message texts was a bit clarified, but that will do for now.