Skip to main content
Version: 3.11

LocalEventManager

Hierarchy

Index

Constructors

constructor

Properties

readonlyconfig

config: Configuration = ...

Methods

close

  • close(): Promise<void>
  • Clears the internal persistState event interval. This is automatically called at the end of crawler.run().


    Returns Promise<void>

emit

  • Parameters

    Returns void

init

  • init(): Promise<void>
  • Initializes the EventManager and sets up periodic systemInfo and persistState events. This is automatically called at the beginning of crawler.run().


    Returns Promise<void>

isInitialized

  • isInitialized(): boolean
  • Returns boolean

off

  • off(event: EventTypeName, listener?: (...args: any[]) => any): void
  • Parameters

    Returns void

on

  • on(event: EventTypeName, listener: (...args: any[]) => any): void
  • Parameters

    Returns void