Function Subscribe

  • Creates a subscription for outbounds. All clients that receive the outbound data will be subscribed. Once the data is modified (route function decorated using

    Parameters

    • target: any
    • propertyKey: string

    Returns void

    Modifies

    or

    Modifies Matching

    has been called), the outbound is re-sent to the clients.

    Example

    Method annotation for outbound:

    class Example {
    @Outbound("d.example")
    @Subscribe
    async getData(connection: WebsocketConnection): Promise<any> {
    return [...];
    }
    }

Generated using TypeDoc