Skip to main content
Version: v0.0.3

Type Alias: ConnectionErrorPhase

ConnectionErrorPhase = "connect" | "send" | "receive" | "close" | "reconnect"

Connection lifecycle phase where the error occurred.

All 5 phases are defined even though 'reconnect' is only exercised by the client. Locking the full union now prevents a breaking type change later.