kient / EventAPI
Class: EventAPI
Description placeholder
Extends
APIBase
Constructors
new EventAPI()
ts
new EventAPI(kient): EventAPIParameters
| Parameter | Type |
|---|---|
kient | Kient |
Returns
Inherited from
ts
APIBase.constructorProperties
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
kient | readonly | Kient | APIBase.kient | src/api/api-base.ts:5 |
Methods
getSubscriptions()
ts
getSubscriptions(): Promise<DetailedEventSubscription[]>Returns an array of events that are currently subscribed to
Returns
Promise<DetailedEventSubscription[]>
subscribe()
ts
subscribe(params): Promise<EventSubscription[]>Subscribes to a specific event and returns details about subscription
Parameters
| Parameter | Type |
|---|---|
params | EventSubscriptionParams |
Returns
Promise<EventSubscription[]>
unsubscribe()
ts
unsubscribe(ids): Promise<void>Unsubscribes to an array of subscription IDs
Parameters
| Parameter | Type |
|---|---|
ids | string[] |
Returns
Promise<void>