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

x/websocket/deps.ts>EventEmitter#emit

🦕 A simple WebSocket library like ws of node.js library for deno
Latest
method EventEmitter.prototype.emit
import { EventEmitter } from "https://deno.land/x/websocket@v0.1.4/deps.ts";

Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

Parameters

eventName: string | symbol
...args: any[]

Returns

boolean

true if the event had listeners, false otherwise