@Override public void onWebSocketClose(int statusCode,String reason){
  super.onWebSocketClose(statusCode,reason);
  log.info("Socket for peer {} closed: {}",peerID,Integer.toString(statusCode) + " " + reason);
  store.unsubscribe(handle);
}

@ Override public void onWebSocketClose ( int statusCode , String reason ) { super . onWebSocketClose ( statusCode , reason ) ; log . info ( "Socket for peer {} closed: {}" , peerID , Integer . toString ( statusCode ) + " " + reason ) ; store . unsubscribe ( handle ) ; }
called by jetty when the websocket connection is gracefully closed due to a ' close ' event .
