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

x/net/lib/util/emitter.ts>EventEmitter#emit

A networking framework that aims to enable the development of complex multi-port servers and clients.
Go to Latest
method EventEmitter.prototype.emit
import { EventEmitter } from "https://deno.land/x/net@v1.0.4/lib/util/emitter.ts";

Sends a call to each function registered for the given event, passing all remaining parameters of this method to the function.

Parameters

event: string
  • The event to emit.
...data: any[]
  • The data to send to the event listeners. [rest operator]