davinkevin / AngularStompDK

Angular service to communicate to Stomp-Websocket
http://davinkevin.github.io/AngularStompDK/
Apache License 2.0
36 stars 12 forks source link

Support for RabbitMQ web stomp plugin #11

Closed the-james-burton closed 8 years ago

the-james-burton commented 8 years ago

This library looks very promising. Does it support setting the port?

I am trying to get it to connect to a websocket hosted at http://localhost:15674/stomp (provided by RabbitMQ via their web-stomp plugin).

I tried various combinations of url and vhost in the ngstompProvider, but I didn't manage to get it to connect.

Can it be done or is this a new feature request?

the-james-burton commented 8 years ago

Sorry to bother, looks like I might actually have CORS issues ;(

the-james-burton commented 8 years ago

I can confirm that yes, this does work with the rabbitMQ web stomp plugin. Here is the setup I used...

        ngstompProvider
            .url(url)
            .credential('guest', 'guest')
            .debug(true)
            .vhost('/')
            .class(SockJS);