kkrpc
    Preparing search index...

    Interface Message<T>

    This file contains the serialization and deserialization helpers for the RPC protocol.

    interface Message<T = any> {
        args: T;
        callbackIds?: string[];
        id: string;
        method: string;
        path?: string[];
        transferSlots?: TransferSlot[];
        type:
            | "request"
            | "response"
            | "callback"
            | "get"
            | "set"
            | "construct"
            | "stream-chunk"
            | "stream-end"
            | "stream-error"
            | "stream-cancel";
        value?: any;
        version?: "json"
        | "superjson";
    }

    Type Parameters

    • T = any
    Index

    Properties

    args: T
    callbackIds?: string[]
    id: string
    method: string
    path?: string[]
    transferSlots?: TransferSlot[]
    type:
        | "request"
        | "response"
        | "callback"
        | "get"
        | "set"
        | "construct"
        | "stream-chunk"
        | "stream-end"
        | "stream-error"
        | "stream-cancel"
    value?: any
    version?: "json" | "superjson"