code: public void initialize(Map<String, List<EventHandler>> eventHandlers, URI uri) {
      this.eventHandlers = eventHandlers;
      EventListener listener = new EventListener(uri);
      executorService.submit(listener);
      logger.fine("Started event listener");
    }
docs: Initialize the event poller.
  
  @param eventHandlers The handlers for different event types.
  @param uri The web socket connection URI.