Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method EventEmitter.prototype.addClientToChannel
import { EventEmitter } from "https://deno.land/x/sockets@v0.5.0/src/event_emitter.ts";

Adds a new client to a channel. Once the client is added, the client will be able to receive messages sent to the channel.

Parameters

channelName: string
  • The name of the channel.
clientId: number
  • Client's socket connection id.