@istock/iswork / Exports / IMessageHandler
Interface: IMessageHandler
Table of contents
Properties
Properties
cmdAppend
• cmdAppend: (payload
: TCmdpPayload
) => TCmdpPayload
Type declaration
▸ (payload
): TCmdpPayload
Parameters
Name | Type |
---|---|
payload | TCmdpPayload |
Returns
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
Name | Type |
---|---|
payload | TCmdpPayload |
Returns
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
Name | Type |
---|---|
payload? | TCmdpPayload |
Returns
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
Name | Type |
---|---|
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
Name | Type |
---|---|
optoins | TMessageSSEOptions |
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
Name | Type |
---|---|
subscribeCallback | TSubscribeCallback <V > |
Returns
Observable
<V
>
Defined in
src/packages/iswork/src/decorators/controller/controller-method-message-handler.decorator.ts:19