Function ResendAfterAuthenticationChange

  • Outbounds decorated with this decorator are re-sent to the client once the client's authentication changes. The authentication change is detected when a method decorated with @ModifiesAuthentication is called by the client.

    Parameters

    • target: any
    • propertyKey: string

    Returns any

    Example

    // Method annotation:
    class Example {
    @Outbound("auth.user")

    Resend After Authentication Change

    async getUser(connection: WebsocketConnection): Promise { return [...]; } }

Generated using TypeDoc