stomp-js / ng2-stompjs

Angular 6 and 7 - Stomp service over Websockets
https://stomp-js.github.io/
Apache License 2.0
182 stars 32 forks source link

I can get the socket to connect on IE but if fails on chrome. Any Ideas? #43

Closed vogong closed 6 years ago

kum-deepak commented 6 years ago

I typically use Chrome as the first browser to test, so, not sure why it fails for Chrome. I use Mac OS X as by desktop.

Please send me your Stomp Config.

vogong commented 6 years ago

I am trying to figure it out, My rabbitmq, webstomp examples work fine , both ws and socks so trying to see why I cant get this to work. Dont stress , was just looking for pointers

vogong commented 6 years ago

An update changing stomp.service to

protected initStompClient(): void { var ws = new WebSocket(this.config.url.toString()); // if (typeof(this.config.url) === 'string') { // this.client = Stomp.client(this.config.url); // } else { // this.client = Stomp.over(this.config.url); // } this.client = Stomp.over(ws);

works.

so there is something i have wrong if this.client = Stomp.client(this.config.url); does not.

My config file is all default

kum-deepak commented 6 years ago

Please attach your full config file.

kum-deepak commented 6 years ago

Closing because of lack of activity.