Function createInteractionContextWithLogger

  • Creates an Ogmios InteractionContext with close logic

    Returns

    Promise resolving an Ogmios InteractionContext

    Parameters

    • logger: Logger

      Logger instance

    • Optional options: CreateInteractionContextOptions

      Options passed to the createInteractionContext function

    • Optional onUnexpectedClose: (() => Promise<void>)

      Optional callback to trigger an action when an unexpected close event occurs

        • (): Promise<void>
        • Returns Promise<void>

    Returns Promise<InteractionContext>

Generated using TypeDoc