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

x/sockets/src/event_emitter.ts>EventEmitter#to

A WebSocket library for Deno.
Latest
method EventEmitter.prototype.to
import { EventEmitter } from "https://deno.land/x/sockets@v0.5.0/src/event_emitter.ts";

Send a message to a channel, excluding the sender.

Parameters

channelName: string
  • The name of the channel.
message: unknown
  • The message to send.