Skip to main content
Module

x/cav/socket.ts>SetupArg

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

Arguments available to the setup function of a socket endpoint.

Type Parameters

optional
Param extends ParamRecord = ParamRecord
optional
Ctx extends SocketSchema["ctx"] = null
optional
Query extends QueryRecord = QueryRecord
optional
Recv = unknown
optional
Send = unknown

Properties

ws: WS<Send, Recv extends null ? unknown : ParserOutput<Recv>>