Skip to main content

Interface: IConversationEventServicePubSubEngine

models.IConversationEventServicePubSubEngine

Methods

asyncIterator

asyncIterator<T>(triggers): AsyncIterator<T, any, undefined>

Type parameters

Name
T

Parameters

NameType
triggersstring | string[]

Returns

AsyncIterator<T, any, undefined>

Defined in

packages/convostack-models/dist/index.d.ts:90


publish

publish(triggerName, payload): Promise<void>

Parameters

NameType
triggerNamestring
payloadany

Returns

Promise<void>

Defined in

packages/convostack-models/dist/index.d.ts:87


subscribe

subscribe(triggerName, onMessage, options): Promise<number>

Parameters

NameType
triggerNamestring
onMessageFunction
optionsObject

Returns

Promise<number>

Defined in

packages/convostack-models/dist/index.d.ts:88


unsubscribe

unsubscribe(subId): any

Parameters

NameType
subIdnumber

Returns

any

Defined in

packages/convostack-models/dist/index.d.ts:89