Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IConnectionStatusListener

连接监听器

Hierarchy

  • IConnectionStatusListener

Index

Methods

Methods

  • Parameters

    • status: RCConnectionStatus

      当前连接状态:

      • RCConnectionStatus.CONNECTED - 已连接
      • RCConnectionStatus.CONNECTING - 连接中
      • RCConnectionStatus.DISCONNECTED - 连接断开,需要根据 code 值排查原因,SDK 不再重连
      • RCConnectionStatus.SUSPEND - 连接中断,SDK 会尝试重连,可以通过 code 确认中断原因
    • Optional code: ErrorCode

      当 status 值为 RCConnectionStatus.DISCONNECTEDRCConnectionStatus.SUSPEND 时,code 有值

    Returns void