@lppedd/message-bus - v0.2.0
    Preparing search index...

    Interface ChildMessageBusOptions

    interface ChildMessageBusOptions {
        copyListeners: boolean;
        errorHandler: (e: unknown) => void;
        safePublishing: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    copyListeners: boolean

    Whether to copy MessageListener(s) from the parent bus.

    true
    
    errorHandler: (e: unknown) => void

    A handler for caught unhandled errors from message handlers, invoked when safePublishing is true.

    (e) => console.error(e)
    
    safePublishing: boolean

    If true, errors thrown by message handlers are caught and sent to the errorHandler instead of being allowed to propagate.

    The default errorHandler prints to console.error.

    false