express-ws icon indicating copy to clipboard operation
express-ws copied to clipboard

Error: Unexpected server response: 502

Open iocmet opened this issue 3 years ago • 0 comments

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'); });

iocmet avatar Dec 29 '21 20:12 iocmet