We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example, on my $connect handler, I return
{ statusCode: 200, body: 'Connected' }
But when I connect via wscat, I'm not seeing the body text in the terminal.
wscat
The text was updated successfully, but these errors were encountered:
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' }));
Sorry, something went wrong.
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...
No branches or pull requests
For example, on my $connect handler, I return
{ statusCode: 200, body: 'Connected' }
But when I connect via
wscat
, I'm not seeing the body text in the terminal.The text was updated successfully, but these errors were encountered: