Function ModifiesAuthentication

  • Routes decorated with this annotation indicate that the authentication of the user might change during the method call. This annotation triggers the re-sending of all outbounds that the user has received and are decorated using @ResendAfterAuthenticationChange.

    Parameters

    • target: any
    • propertyKey: string

    Returns any

    Example

    Method annotation:

    @Route("auth")
    class Auth {
    @Route("login")
    @ModifiesAuthentication
    async login(credentials: any, connection: WebsocketConnection): Promise<any> {
    [...]
    }
    }

Generated using TypeDoc