@Override public void upgrade(Object protocol){
  Objects.requireNonNull(protocol);
  if (protocol instanceof ServiceWebSocket) {
    ServiceWebSocket<?,?> webSocket=(ServiceWebSocket<?,?>)protocol;
    upgradeWebSocket(webSocket);
  }
 else {
    throw new IllegalArgumentException(protocol.toString());
  }
}

@ Override public void upgrade ( Object protocol ) { Objects . requireNonNull ( protocol ) ; if ( protocol instanceof ServiceWebSocket ) { ServiceWebSocket < ? , ? > webSocket = ( ServiceWebSocket < ? , ? > ) protocol ; upgradeWebSocket ( webSocket ) ; } else { throw new IllegalArgumentException ( protocol . toString ( ) ) ; } }
starts an upgrade of the http request to a protocol on raw tcp .
