Skip to main content
class Client
import { Client } from "https://deno.land/x/sono@v1.1/src/client.ts";

Client class creates each client with unique id, WebSocket, and the channel client is set to

Constructors

new
Client(socket: WebSocket, lastClientId: number)

Properties

channel: string
id: number
socket: WebSocket