Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/snel/imports/wocket.ts>EventEmitter#createClient

A Cybernetical framework for svelte applications in deno
Latest
method EventEmitter.prototype.createClient
import { EventEmitter } from "https://deno.land/x/snel@v0.7.1/imports/wocket.ts";

Adds a new client.

Parameters

clientId: number
  • Client's socket connection id.
clientSocket: WebSocket
  • The client as a WebSocket instance.

Returns

A Client instance for use in the socket-client connection lifecycle.