BSB Node.js Type Definitions
    Preparing search index...

    Interface ServiceClientEventSchemas<T>

    ServiceClient event schema with swapped RX/TX directions. When using ServiceClient, the directions are inverted:

    • ServiceClient.onEvent() listens to what the target service EMITs
    • ServiceClient.emitEvent() sends to what the target service LISTENS FOR
    interface ServiceClientEventSchemas<T extends BSBEventSchemas> {
        onEvents?: T["emitEvents"];
        emitEvents?: T["onEvents"];
        onReturnableEvents?: T["emitReturnableEvents"];
        emitReturnableEvents?: T["onReturnableEvents"];
        onBroadcast?: T["emitBroadcast"];
        emitBroadcast?: T["onBroadcast"];
    }

    Type Parameters

    Index

    Properties

    onEvents?: T["emitEvents"]

    Listen to events the target service emits (fire-and-forget)

    emitEvents?: T["onEvents"]

    Emit events to what the target service listens for (fire-and-forget)

    onReturnableEvents?: T["emitReturnableEvents"]

    Listen to returnable events the target service emits (requests from target)

    emitReturnableEvents?: T["onReturnableEvents"]

    Emit returnable events to what the target service handles (requests to target)

    onBroadcast?: T["emitBroadcast"]

    Listen to broadcast events the target service emits

    emitBroadcast?: T["onBroadcast"]

    Emit broadcast events to what the target service listens for