Skip to content

@istock/iswork / Exports / IMessageHandler

Interface: IMessageHandler

Table of contents

Properties

Properties

cmdAppend

cmdAppend: (payload: TCmdpPayload) => TCmdpPayload

Type declaration

▸ (payload): TCmdpPayload

Parameters
NameType
payloadTCmdpPayload
Returns

TCmdpPayload

Defined in

src/packages/iswork/src/decorators/controller/controller-method-message-handler.decorator.ts:17


cmdReplace

cmdReplace: (payload: TCmdpPayload) => TCmdpPayload

Type declaration

▸ (payload): TCmdpPayload

Parameters
NameType
payloadTCmdpPayload
Returns

TCmdpPayload

Defined in

src/packages/iswork/src/decorators/controller/controller-method-message-handler.decorator.ts:18


complete

complete: (payload?: TCmdpPayload) => TCmdpPayload

Type declaration

▸ (payload?): TCmdpPayload

Parameters
NameType
payload?TCmdpPayload
Returns

TCmdpPayload

Defined in

src/packages/iswork/src/decorators/controller/controller-method-message-handler.decorator.ts:16


createMessageIterator

createMessageIterator: (callback: (messageIterator: MessageIterator) => void) => AsyncIterator<TMessageIteratorData, void, unknown>

Type declaration

▸ (callback): AsyncIterator<TMessageIteratorData, void, unknown>

创建一个Generator异步消息函数

Parameters
NameType
callback(messageIterator: MessageIterator) => void
Returns

AsyncIterator<TMessageIteratorData, void, unknown>

Defined in

src/packages/iswork/src/decorators/controller/controller-method-message-handler.decorator.ts:20


createMessageSSE

createMessageSSE: (optoins: TMessageSSEOptions) => Promise<AsyncIterator<TMessageSSEIteratorData, void, unknown>>

Type declaration

▸ (optoins): Promise<AsyncIterator<TMessageSSEIteratorData, void, unknown>>

创建一个Generator异步消息函数

Parameters
NameType
optoinsTMessageSSEOptions
Returns

Promise<AsyncIterator<TMessageSSEIteratorData, void, unknown>>

Defined in

src/packages/iswork/src/decorators/controller/controller-method-message-handler.decorator.ts:21


createObservable

createObservable: <V>(subscribeCallback: TSubscribeCallback<V>) => Observable<V>

Type declaration

▸ <V>(subscribeCallback): Observable<V>

Type parameters
Name
V
Parameters
NameType
subscribeCallbackTSubscribeCallback<V>
Returns

Observable<V>

Defined in

src/packages/iswork/src/decorators/controller/controller-method-message-handler.decorator.ts:19

免责声明:本站所有信息、数据、软件仅供学习研究,都不构成投资建议,本站不承担由此导致的任何责任。