import { socket } from "https://deno.land/x/cav@0.0.24/endpoints.ts";
Constructs a new Socket request handler using the provided schema and setup function. The schema properties will be assigned to the returned socket endpoint function, with the setup argument available as the "setup" property.
Type Parameters
Schema extends SocketSchema | null
Parameters
optional
schema: (Schema & SocketSchema) | nullType Parameters
optional
Setup extends (x: SetupArg<{ }>) => any = () => OmittedParameters
optional
setup: Setup