willow-eventhandler/src/main/java/com/nitorcreations/willow/eventhandler/EventPoller.java
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");
  }
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");
  }
Initialize the event poller.

@param eventHandlers The handlers for different event types.
@param uri The web socket connection URI.