Skip to main content
Module

x/cav/mod.ts>SetupArg

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