vi/websocat

`WebSocketError: I/O failure` when connecting with incorrect URI.

milliero-se opened this issue · 0 comments

When listening for a WebSocket connection with --restrict-uri, a client attempting to connect to another URI (e.g. to access a static file) results in a

websocat: WebSocketError: I/O failure

I have no noticed downsides except an annoying message. Perhaps this is as designed.

websocat --version reports 1.13.0.

Reproduce with

websocat --restrict-uri=/ws ws-l:127.0.0.1:8080 - &
curl 127.0.0.1:8080