property WSEventBus.emit

Calls the handlers of kind now, in the order they subscribed.

Type

<K extends keyof WSEvents>(
kind: K,
event: WSEvents[K]
) => void

Usage

import { type WSEventBus } from "src/contexts/ws/WSContext.ts";