Deepak Kumar
Deepak Kumar
Please see https://stomp-js.github.io/api-docs/latest/classes/RxStomp.html#stompErrors$ A compliant STOMP Broker will send ERROR frame in case of an error and close the connection. However some brokers do not adhere to it. See if...
Yes, you can subscribe any number of queues. Just make multiple calls to subscribe. Please check the samples as well. If you are new to dependency injection, please add the...
When you make a call to subscribe, a new Observable is returned, which will provide messages for that queue.
The first one: this.messages = this._stompService.subscribe('/topic/ng-demo-sub'); this.messages2 = this._stompService.subscribe('/topic/ng-demo-sub2');
No, the code will look something like following (I haven't executed the code, just typed here): ```typescript // use messages from /topic/ng-demo-sub by subscribing to the Observable this.messages = this._stompService...
In summary both the subscriptions are independent of each other and do not affect each other.
@marcelormourao, please create a demo project demonstrating the issue. You can fork one of the demo projects (links in the README). Thanks! Meanwhile I am also taking a look.
I have tested the following sequence (I have added these and few more cases in `src/specs/app/services/stomp-queue.operations.spec.ts`): ```typescript queSubscription1 = stompService.subscribe(queueName1) .map((message) => message.body) .subscribe(spyHandler1); queSubscription2 = stompService.subscribe(queueName2) .map((message) => message.body)...
Please note that I have updated my schematic code at https://github.com/stomp-js/ng2-stompjs/issues/2#issuecomment-293604982
@s1vert, seems bit peculiar behavior. Please fork any of the samples and modify it to show the issue. I will like to have a look at the issue.