Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/danet/mod.ts>EventEmitter

The most mature backend framework for Deno. Create awesome HTTP and WebSocket server as well as KVQueue workers !
Latest
class EventEmitter
Re-export
import { EventEmitter } from "https://deno.land/x/danet@2.4.1/mod.ts";

Constructors

new
EventEmitter()

Properties

private
eventTarget: EventTarget
private
listenersRegistered: Map<string, Listener[]>
private
logger: Logger

Methods

private
deleteChannel(channelName: string)
emit<P>(channelName: string, payload: P)
subscribe<P>(channelName: string, listener: Listener<P>)
unsubscribe(channelName?: string)