Open marcusegues opened 5 years ago
+1 I am experiencing the exact same issue
You have to add /stomp at the end of the url. So in your case it should be:
const ws = new WebSocket('ws://localhost:9999/stomp');
The default value of config.path is "/stomp" base on the code https://github.com/4ib3r/StompBrokerJS/blob/master/lib/config.js#L7
I am having an issue setting up a simple connection from a browser to the node example given.
Server code:
Browser code:
I am just copying what is in the docs as regards the server code. I am using @stomp/stompjs client to connect.
The error I get is:
WebSocket connection to 'ws://localhost:9999/' failed: Error during WebSocket handshake: Unexpected response code: 400