Interface: IConversationEventServicePubSubEngine
models.IConversationEventServicePubSubEngine
Methods
asyncIterator
▸ asyncIterator<T
>(triggers
): AsyncIterator
<T
, any
, undefined
>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
triggers | string | string [] |
Returns
AsyncIterator
<T
, any
, undefined
>
Defined in
packages/convostack-models/dist/index.d.ts:90
publish
▸ publish(triggerName
, payload
): Promise
<void
>
Parameters
Name | Type |
---|---|
triggerName | string |
payload | any |
Returns
Promise
<void
>
Defined in
packages/convostack-models/dist/index.d.ts:87
subscribe
▸ subscribe(triggerName
, onMessage
, options
): Promise
<number
>
Parameters
Name | Type |
---|---|
triggerName | string |
onMessage | Function |
options | Object |
Returns
Promise
<number
>
Defined in
packages/convostack-models/dist/index.d.ts:88
unsubscribe
▸ unsubscribe(subId
): any
Parameters
Name | Type |
---|---|
subId | number |
Returns
any
Defined in
packages/convostack-models/dist/index.d.ts:89