Skip to main content

EventSubscriber

@hardkas/core


@hardkas/core / EventSubscriber

Class: EventSubscriber

Defined in: packages/core/src/events.ts:339

Constructors​

Constructor​

new EventSubscriber(): EventSubscriber

Returns​

EventSubscriber

Methods​

subscribe()​

subscribe(options): string

Defined in: packages/core/src/events.ts:346

Subscribes to events by polling the underlying source at the specified interval. Note: This is an initial V1 implementation purely based on polling.

Parameters​

options​

EventSubscribeOptions

Returns​

string


unsubscribe()​

unsubscribe(subId): void

Defined in: packages/core/src/events.ts:387

Parameters​

subId​

string

Returns​

void