1 Reply Latest reply on Mar 20, 2012 12:54 PM by csa

    Support for multiple subscribers???

    david.grigglestone

      I'll attach the project to this discussion .. but first question is should a client be able to create multiple subscribers (each subscribing to a different subject)?

       

      If so I'm assuming there is some kind of defect, since when I publish to the second subject the test app fails to make UI updates.

       

      See line:

       

      MessageBuilder.createMessage().toSubject("status2")

                              .command("StateChange").noErrorHandling()

                              .sendGlobalWith(StockService.this.requestDispatcher);

       

      .. when I change to the code below everything works fine (the images on the app start to randomly change)

       

      MessageBuilder.createMessage().toSubject("status")

                              .command("StateChange").noErrorHandling()

                              .sendGlobalWith(StockService.this.requestDispatcher);

        • 1. Re: Support for multiple subscribers???
          csa

          Yes, of course clients can subscribe to multiple subjects. I have just tested your app to confirm the client-side message callback is invoked for both subjects ("status" and "status2"). Are you sure your callback is not invoked and it's not a UI problem?

           

          Do you see errors in your browser's JS console or in Dev Mode?