code: @Override
      public void processConnect(WebSocketChannel channel, WSURI uri, String[] protocols) {
          LOG.entering(CLASS_NAME, "connect", channel);
          
          if (((WebSocketSelectedChannel)channel).readyState == ReadyState.CLOSED) {
              throw new IllegalStateException("WebSocket is already closed");
          }
          
          nextHandler.processConnect(channel, uri, protocols);
      }
docs: Establishes the websocket connection