Skip to main content
Module

x/cav/endpoint.ts>SetupArg

A server framework for Deno
Go to Latest
interface SetupArg
implements Omit<ResolveArg<Param, Ctx, Query, any>,
| "body"
| "asset"
| "bundle"
| "redirect"
>
import { type SetupArg } from "https://deno.land/x/cav@0.2.0-alpha.7/endpoint.ts";

Arguments available to the setup function of a socket endpoint.

Type Parameters

Param extends SocketSchema["param"]
Ctx extends SocketSchema["ctx"]
Query extends SocketSchema["query"]
Send extends SocketSchema["send"]
Recv extends SocketSchema["recv"]

Properties

ws: WS<Send, (SocketSchema["recv"] extends Recv ? unknown : ParserOutput<Recv>)>