reply
Constructs a reply-event
Importing
import { reply } from '@marblejs/messaging';Type declaration
reply :: string -> Event -> Event
reply :: EventMetadata -> Event -> Event
reply :: Event -> Event -> EventExample
import { act, matchEvent } from '@marblejs/core';
import { reply, MsgEffect } from '@marblejs/messaging';
const foo$: MsgEffect = event$ =>
event$.pipe(
matchEvent('FOO'),
act(event => reply('event_bus')({ type: 'FOO_RESPONSE' })),
);Last updated