Skip to main content
method EventHandler.prototype.broadcast
import { EventHandler } from "https://deno.land/x/sono@v1.1/src/eventhandler.ts";

Broadcast data to all clients except for the cliet sending the data

Parameters

packet: Packet
  • Message containing channel to change client to
client: Client
  • Client to change channel
channelsList: { [key: string]: Record<string, Client>; }
  • Object containing all channels in Sono server