stomp-js/ng2-stompjs

Advice: Testing subscriptions in multiple browser tabs / sessions

JamieKalloe opened this issue · 1 comments

Hi there,

I'm looking for some advice / best practises regarding the testing of RxStomp subscriptions using multiple browser sessions.

Right now I'm using the STOMP plugin for RabbitMQ, and I'm using RxStomp for the client side.
Whenever I open a new browser tab (to simulate another subscriber) the subscription id will still be 0.

Example:
>>> SUBSCRIBE ack:auto id:sub-0 destination:event.ronde.1.registered-jury

This behaviour results in just one subscriber (of sub-0) receiving the message.
What I want to test is simulating multiple subscribers, using multiple browser tabs, so that every tab will be assigned an unique sub-id and that all browser tabs will receive the message.

Some guidance on this problem would be very much appreciated!

Thanks and happy holidays!

Jamie

Closed in favor of stomp-js/rx-stomp#166