Sporades SDK API
    Preparing search index...

    Type Alias MessageApi

    App-message fan-out API available to server code.

    Message type names are app-defined and unprefixed. Sporades reserves and adds its internal transport prefix. Client-origin messages always enter declared server message handlers before any fan-out.

    type MessageApi = {
        send(
            message: { data?: unknown; scope?: MessageScope; type: string },
        ): number;
    }
    Index
    • Parameters

      • message: { data?: unknown; scope?: MessageScope; type: string }

      Returns number