Open priyankn opened 5 years ago
Multiple incoming messages should be OK. By default each text message should turn into one line on stdout. Close
is sent when stdin is closed (unless -n
option is specified to websocat).
I can see the first response, but not the second
What do you see instead? Does it exits or just wait?
Nothing, it just waits. The connection drops anyway after ~5 secs, so if I try to send the request again I see:
^@websocat: WebSocketError: I/O failure
Edit: I am using binary mode.
Please show the command line.
Assuming it's Linux, please also prepare two logs like this:
RUST_LOG=debug websocat -b ws://your_server 2> log1.txt
strace -fe trace=network -o log2.txt websocat -b ws://your_server
Good work on this project! I have one question though, does the client keeps the websocket channel open for new incoming messages?
I have a particular scenario where the for one 'outgoing' request, I have two 'incoming' responses from the server. I can see the first response, but not the second ( I see it via the browser). I suspect the channel is closed, but some clarification would be appreciated.