title: Java Vertx Eventbus Bridge with Angular on client side
body: <p>I have implemented vertx eventbus bridge on my client side(Angular) and it works to some extend. I mean some time I get the send message from my Java Vertx application on the client side but some times I get this below error. Can someone please help me to debug or tell me why I get this error. I have a feeling for some reason the client is not registering.</p>
  <pre><code>&gt; ERROR Error: INVALID_STATE_ERR
  &gt;     at EventBus.registerHandler (vertx-eventbus.js:279:13)
  &gt;     at SafeSubscriber._next (core.service.ts:83:16)
  &gt;     at SafeSubscriber.__tryOrUnsub (Subscriber.ts:265:10)
  &gt;     at SafeSubscriber.next (Subscriber.ts:207:14)
  &gt;     at Subscriber._next (Subscriber.ts:139:22)
  &gt;     at Subscriber.next (Subscriber.ts:99:12)
  &gt;     at FilterSubscriber._next (UnsubscriptionError.ts:101:24)
  &gt;     at FilterSubscriber.next (Subscriber.ts:99:12)
  &gt;     at BehaviorSubject._subscribe (BehaviorSubject.ts:27:18)
  &gt;     at BehaviorSubject._trySubscribe (Observable.ts:238:19)
  </code></pre>
  <p>and the code in the error is point to line 83 in my Angular code i.e. eventBus.registerHandler.</p>
  <pre><code>hostJobProgressSession(){
      console.log('Inside hostJobProgressSession!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
      console.log(this.eventBusService.getEventBus());
      this.eventBusService.getEventBus().subscribe(eventBus =&gt; {
        eventBus.registerHandler('update.job.onclient', (error, message) =&gt; {
          console.log('Inside registerHandler() -- received a message from server !! : ' + JSON.stringify(message.body));
          this.progressValue.next(message.body);
  
          if(error)
          {
            console.log('ERROR'+error)
              
        });
      })
    }
  </code></pre>
  <p>I will appreciate your help!!</p>