Base protocol frame

interface ProtocolFrame<T> {
    payload: Record<string, unknown>;
    requestId?: string;
    timestamp: number;
    type: T;
}

Type Parameters

  • T extends string = string

Hierarchy (view full)

Properties

payload: Record<string, unknown>
requestId?: string

Request correlation ID for request/response flows

timestamp: number
type: T