Open paul-uz opened 2 years ago
What you mean with "$connect handler"? To get that data, the WebSocket server that wscat
connects to should send a message like this
websocket.send(JSON.stringify({ statusCode: 200, body: 'Connected' }));
I wanted to add an issue for not showing the error messages in the body, for example in this case:
error: Unexpected server response: 500
>
when using curl, I get the real error in the body like:
{"message":"Unable to find ....
Maybe I can prepare a PR, if the project is still maintained...
For example, on my $connect handler, I return
But when I connect via
wscat
, I'm not seeing the body text in the terminal.