Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/socket_client/src/client.ts>WSConfig

A simple WebSocket client for Deno
Latest
interface WSConfig
import { type WSConfig } from "https://deno.land/x/socket_client@0.1.0-alpha.1/src/client.ts";

Properties

uri: string | URL

The uri used to establish the WebSocket connection.

optional
headers: HeadersInit

Extra headers that will be used when connecting.

optional
logger: Logger

The custom logger used to log messages.

optional
logLevel: LevelName

The level of logger (Default to INFO) (Will be excluded if logger is present).