Backstage
    Preparing search index...

    Interface HttpRouterServiceWebSocketHandler

    interface HttpRouterServiceWebSocketHandler {
        authPolicy?: "unauthenticated";
        path: string;
        handler(context: HttpRouterServiceWebSocketContext): void | Promise<void>;
    }
    Index
    authPolicy?: "unauthenticated"

    Requires token authentication by default. Set to unauthenticated to handle authentication in the handler. Cookie authentication is not supported. HTTP rate limiting and request logging do not run for unauthenticated WebSocket routes either; the handler must provide any protections it needs. Handlers accepting cookies or other ambient credentials should validate the request origin to prevent cross-site WebSocket hijacking.

    path: string

    An exact path relative to the plugin base URL. Use / for the base URL.