Hierarchy

Constructors

Properties

cardanoNode: CardanoNode
closeNotify: (() => void) = noop

Type declaration

    • (): void
    • Returns void

closing: boolean = false
db: Pool
health$: Observable<WSHealthCheckResponse>
heartbeatInterval: undefined | Timer
lastReceivedNotification: number = 0
lastSentNotification: number = 0
lastSlot: Slot = ...
logger: Logger
notifications: Map<number, NotificationBody> = ...
server: Server<typeof IncomingMessage, typeof ServerResponse>
stakeInterval: undefined | Timer
syncing: boolean = true
wss: WebSocketServer

Methods

  • Creates a simple HTTP server which just handles the /health URL. Mainly used to listen the WS server.

    Returns Server<typeof IncomingMessage, typeof ServerResponse>

  • Returns ((msg: Notification) => Promise<void>)

      • (msg: Notification): Promise<void>
      • Parameters

        • msg: Notification

        Returns Promise<void>

  • Parameters

    • port: number
    • dbCacheTtl: number
    • heartbeatInterval: number
    • heartbeatTimeout: number

    Returns Promise<void>

Generated using TypeDoc