Stone.js API
    Preparing search index...

    A connection held by a server transport (WS/SSE), tracked so broadcasts can target it.

    interface Connection<T = unknown> {
        id: string;
        info?: T;
        send?: (message: RealtimeMessage) => void | Promise<void>;
    }

    Type Parameters

    • T = unknown
    Index
    id: string

    The connection id.

    info?: T

    Presence info, if any.

    send?: (message: RealtimeMessage) => void | Promise<void>

    Send a message to this connection (implemented by the transport/adapter).