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

    Interface MessageBusOptions

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

    Hierarchy (View Summary)

    Index

    Properties

    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