Skip to main content
Module

x/cav/mod.ts>SocketInit

A server framework for Deno
Go to Latest
interface SocketInit
Re-export
import { type SocketInit } from "https://deno.land/x/cav@0.0.21/mod.ts";

Initializer options to use when upgrading a request into a web socket using the upgradeWebSocket function.

Type Parameters

optional
Message extends Parser | null = null

Properties

optional
message: Message

Message parser, for parsing incoming messages. If this is ommitted, messages won't be parsed and will be typed as "unknown".

optional
serializers: Serializers | null

Additional serializers to use when serializing and deserializing message data.