ProtocolAction: {
    type: "none";
} | {
    payload: Payload;
    type: "payload";
} | {
    kind: ProtocolErrorKind;
    message: string;
    type: "error";
} | {
    reason: string;
    type: "goodbye";
} | {
    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.

Type declaration

  • type: "none"

Type declaration

Type declaration

Type declaration

  • reason: string
  • type: "goodbye"

Type declaration

  • Optional id?: string
  • reason: string
  • type: "serverError"

Generated using TypeDoc