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

Stomp Over SSL #140

Open
PikaChokeMe opened this issue Sep 5, 2017 · 1 comment
Open

Stomp Over SSL #140

PikaChokeMe opened this issue Sep 5, 2017 · 1 comment

Comments

@PikaChokeMe
Copy link

PikaChokeMe commented Sep 5, 2017

I can't seem to get this working with stomp over SSL and the more I look at it I'm not even sure it's supported.

I'm currently try to do

let wsProtocol = (location.protocol === 'https:') ? 'wss:' : 'ws:';
this.webSocketPath = `${wsProtocol}//${location.hostname}:${location.port}${webSocketPath}`;
this.stompClient = Stomp.client(this.webSocketPath);
this.stompClient.connect({login: '', passcode: ''}, this.connectCallback.bind(this));

But I get 400 errors on handshake. I've also tried using no port and port 443 explicitly but those have net me with a 404 not found.

@dazed19
Copy link

dazed19 commented Oct 12, 2017

Hi - I reliase you posted this a month ago. SSL via wss is definitely included as we are using - if you are getting a 404 I would suggest that the ssl part is working and the problem may be resolving the "$webSocketPath" on your server. Does this work with non-ssl (ws) mode?

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

2 participants