Interface BackendWebSocketOptions

interface BackendWebSocketOptions {
    auth: {
        token: string;
    };
    bearerToken?: string;
    path?: string;
    transportOptions?: {
        [key: string]: any;
    };
    transports: string[];
}

Properties

auth: {
    token: string;
}

Authentication parameters

Type declaration

  • token: string
bearerToken?: string

The bearer token to use in the websocket connection

path?: string

The path to connect to the websocket server

transportOptions?: {
    [key: string]: any;
}

Additional options to pass to the websocket transport

Type declaration

  • [key: string]: any
transports: string[]

The websocket transports to use