Type Alias WsApiConnectionChangeHandler<ResponseCommandsT, QueryT>

WsApiConnectionChangeHandler<ResponseCommandsT, QueryT>: ((args: {
    connectionId: string;
    express: {
        next: NextFunction;
        req: Request;
        ws: WebSocket;
    };
    output: WsApiResponders<ResponseCommandsT>;
    query: QueryT;
}) => Promise<void>)

Type Parameters

  • ResponseCommandsT extends AnyCommands
  • QueryT extends AnyQuery