code: public CompletableFuture<Void> close() {
      protocol.unregisterPublishListener(state.getSessionId());
      return CompletableFuture.completedFuture(null);
    }
docs: Closes the session event listener.
  
  @return A completable future to be completed once the listener is closed.