Unless already possible using scripts, would it be possible to add a command line option to specify a timeout for the WebSocket handshake, please? The aim is to detect a potential connection failure. In that case, websocat only fails after 60 seconds:
$> websocat -k -vvv --max-messages 0 wss://<url>
[INFO websocat::lints] Auto-inserting the line mode
[DEBUG websocat] Done third phase of interpreting options.
[DEBUG websocat] Done fourth phase of interpreting options.
[DEBUG websocat] Preparation done. Now actually starting.
...
[INFO websocat::stdio_threaded_peer] get_stdio_peer (threaded)
[DEBUG websocat::sessionserve] Underlying connection established
[INFO websocat::ws_client_peer] get_ws_client_peer
websocat: WebSocketError: WebSocketError: Received unexpected status code (504 Gateway Timeout)
websocat: error running
Hello,
Unless already possible using scripts, would it be possible to add a command line option to specify a timeout for the WebSocket handshake, please? The aim is to detect a potential connection failure. In that case, websocat only fails after 60 seconds:
Thank you for your support.