Skip to main content
Module

x/cav/endpoints.ts>Socket

A server framework for Deno
Go to Latest
type alias Socket
import { type Socket } from "https://deno.land/x/cav@0.0.24/endpoints.ts";

Cav endpoint handler for connecting web sockets.

Type Parameters

optional
Schema = null
definition: (Schema extends null ? { } : Schema) & ((req: SocketRequest<(Schema extends { query: Parser; } ? ParserInput<Schema["query"]> : Record<string, string | string[]>), ("send" extends keyof Schema ? Schema["send"] : unknown), (Schema extends { message: Parser; } ? ParserInput<Schema["message"]> : Schema extends { message?: undefined | null; } ? undefined : unknown)>, conn: http.ConnInfo) => Promise<Response>)