Registry for inbox listeners for different activity types.
on<TActivity extends Activity>(type: new (...args: any[]) => TActivity,listener: InboxListener<TContextData, TActivity>,): InboxListenerSetters<TContextData>
Registers a listener for a specific incoming activity type.
onError(handler: InboxErrorHandler<TContextData>): InboxListenerSetters<TContextData>
Registers an error handler for inbox listeners. Any exceptions thrown from the listeners are caught and passed to this handler.