Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface ServerOptions
import { type ServerOptions } from "https://deno.land/x/socket_io@0.2.0/packages/socket.io/mod.ts";

Properties

path: string

Name of the request path to handle

connectTimeout: number

Duration in milliseconds before a client without namespace is closed

parser: { createEncoder(): Encoder; createDecoder(): Decoder; }

The parser to use to encode and decode packets

adapter: (nsp: Namespace) => Adapter

The adapter to use to forward packets between several Socket.IO servers