Type alias ProtocolAction
ProtocolAction: { type: "none"; } | { payload: Payload; type: "payload"; } | { kind: ProtocolErrorKind; message: string; type: "error"; } | { reason: string; type: "goodbye"; } | { id?: string; reason: string; type: "serverError"; }
Type declaration
-
-
message: string
-
type: "error"
Type declaration
-
reason: string
-
type: "goodbye"
Type declaration
-
Optional id?: string
-
reason: string
-
type: "serverError"
none: No special action should be taken.payload: A changeset should be applied.error: An internal protocol error was encountered.goodbye: The server intends to disconnect.serverError: A server-side application error was encountered.