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

x/socket_io/packages/event-emitter/mod.ts

Socket.IO server for Deno
Latest
import * as socketIo from "https://deno.land/x/socket_io@0.2.0/packages/event-emitter/mod.ts";

Classes

This class extends the BaseEventEmitter abstract class, so a class extending EventEmitter can override the emit method and still call emitReserved() (since it uses super.emit())

Interfaces

The default events map, used if no EventsMap is given. Using this EventsMap is equivalent to accepting all event names, and any data.

An events map is an interface that maps event names to their value, which represents the type of the on listener.

Type Aliases

Returns a union type containing all the keys of an event map.

The tuple type representing the parameters of an event listener

The event names that are either in ReservedEvents or in UserEvents

Type of a listener of a user event or a reserved event. If Ev is in ReservedEvents, the reserved event listener is returned.