@gtcx/events
v0.2.2
Published
Event bus with offline buffering support.
Readme
@gtcx/events
Event bus with offline buffering support.
Installation
pnpm add @gtcx/eventsQuick Start
import { TypedEventBus, OfflineEventBuffer } from '@gtcx/events';
const bus = new TypedEventBus();
bus.on('registration.started', (e) => console.log(e));API
| Export | Description |
| -------------------- | -------------------------- |
| TypedEventBus | Type-safe event bus |
| OfflineEventBuffer | Buffer events when offline |
Related
License
MIT
