code: @Override
      public void dispatchEvent(IEvent event) {
          if (log.isDebugEnabled()) {
              log.debug("Event notify: {}", event);
          }
          // determine if its an outgoing invoke or notify
          switch (event.getType()) {
              case CLIENT_INVOKE:
                  ClientInvokeEvent cie = (ClientInvokeEvent) event;
                  invoke(cie.getMethod(), cie.getParams(), cie.getCallback());
                  break;
              case CLIENT_NOTIFY:
                  ClientNotifyEvent cne = (ClientNotifyEvent) event;
                  notify(cne.getMethod(), cne.getParams());
                  break;
              default:
                  log.warn("Unhandled event: {}", event);
          }
      }
docs: Dispatches event
  
  @param event
  Event