Interface DisconnectMessage

Represents the termination of an existing client connection. Provides the identifier of the disconnecting client.

interface DisconnectMessage {
    action: DISCONNECT;
    id: string;
}

Hierarchy

  • Pick<Required<BaseMessage>, "id" | "action">
    • DisconnectMessage

Properties

Properties

action: DISCONNECT

Specifies the type of action being performed

id: string

Unique identifier for the client connection