ConnectionStatus: {
    DISCONNECTED: "disconnected";
    CONNECTING: "connecting";
    CONNECTED: "connected";
    RECONNECTING: "reconnecting";
    RECONNECT_FAILED: "reconnectFailed";
} = ...

连接状态常量。

Type declaration

  • ReadonlyDISCONNECTED: "disconnected"
  • ReadonlyCONNECTING: "connecting"
  • ReadonlyCONNECTED: "connected"
  • ReadonlyRECONNECTING: "reconnecting"
  • ReadonlyRECONNECT_FAILED: "reconnectFailed"