Base protocol frame

interface IncomingMessage {
    payload: {
        encrypted: SerializedEncryptedMessage;
        from: string;
        messageHash: string;
        offline?: boolean;
    };
    requestId?: string;
    timestamp: number;
    type: "message";
}

Hierarchy (view full)

Properties

payload: {
    encrypted: SerializedEncryptedMessage;
    from: string;
    messageHash: string;
    offline?: boolean;
}

Type declaration

  • encrypted: SerializedEncryptedMessage

    E2E encrypted envelope

  • from: string

    Sender's public key

  • messageHash: string

    Message hash

  • Optionaloffline?: boolean

    Whether this was delivered from offline storage

requestId?: string

Request correlation ID for request/response flows

timestamp: number
type