code: public void onClose(Session session, CloseReason closeReason) {
          if (getOnCloseHandle() != null) {
              callMethod(getOnCloseHandle(), getOnCloseParameters(), session, true, closeReason);
          }
      }
docs: <p>onClose.</p>
  
  @param session a {@link javax.websocket.Session} object.
  @param closeReason a {@link javax.websocket.CloseReason} object.