Function PartialUpdates

  • Annotates that only changes of the outbound data should be sent to the client. This reduces the amount of data, that is sent via the WebSocket connection. However the calculation of the difference is executed on the server-side.

    Parameters

    • target: any
    • propertyKey: string

    Returns void

    Example

    Method annotation for outbound:

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

Generated using TypeDoc