code: @Override
    public void onClosing(WebSocket webSocket, int code, String reason) {
      socketOpen = false;
      callback.onDisconnected();
    }
docs: /*
  (non-Javadoc)
  @see okhttp3.WebSocketListener#onClosing(okhttp3.WebSocket, int, java.lang.String)