Skip to content
New issue

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

Error: Unexpected server response: 502 #154

Open
iocmet opened this issue Dec 29, 2021 · 0 comments
Open

Error: Unexpected server response: 502 #154

iocmet opened this issue Dec 29, 2021 · 0 comments

Comments

@iocmet
Copy link

iocmet commented Dec 29, 2021

I need to send data from the js node of the application to another application, but when I try to send it, it gives me an error Error: Unexpected server response: 502

const WebSocket = require ('ws');

const ws = new WebSocket ('ws: // url_here');

ws.on ('open', function open () {
ws.send ('test');
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant