Type alias DisconnectReason

DisconnectReason: "clientDisconnect" | "serverDisconnect" | "socketError" | "fetchTokenError"
  • 'clientDisconnect' - Orderly disconnect has been initiated by client. Used when user calls disconnect method.
  • 'serverDisconnect' - Orderly disconnect has been initiated by server. Used when given user is disconnected for moderation purposes, e.g. when another user calls disconnectUser method on him.
  • 'socketError' - Room has not been able to establish WebSocket connection with IVS. Room will retry attempts as specified by maxReconnectAttempts parameter. disconnect with this reason is only called when all reconnection attempts have failed.
  • 'fetchTokenError' - Room has not been able to fetch chat token from user backend. Room will retry attempts as specified by maxReconnectAttempts parameter. disconnect with this reason is only called when all token fetching attempts have failed.

Generated using TypeDoc