@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);
}

@ 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 ) ; }
establishes the websocket connection
