Setu-TS
    Preparing search index...

    Interface WebSocketRouteDefinition

    The declarative form of one IWebSocketService.route() call — the entry an application writes instead of calling route() imperatively after start().

    0.3.0

    interface WebSocketRouteDefinition {
        handlers: WebSocketHandlers;
        options?: WebSocketRouteOptions;
        path: string;
    }
    Index

    The lifecycle callbacks, exactly as the imperative route() accepts.

    Per-route configuration, including the route's upgrade guards.

    path: string

    The exact URL path to accept upgrades on (e.g. /ws/chat).