Function LazyLoading

  • Annotates that the outbound should be lazy-loaded by clients.

    Parameters

    • target: any
    • propertyKey: string

    Returns void

    Example

    Method annotation for outbound:

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

Generated using TypeDoc