Summary

A class for emitting provider events

Since

0.2.0

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

events: Map<"accountsChanged" | "pair" | "connect" | "disconnect" | "chainChanged" | "message", Function[]>

Summary

A map of events and their listeners

Methods

  • Parameters

    • event: "accountsChanged" | "pair" | "connect" | "disconnect" | "chainChanged" | "message"

      Event name

    • Rest ...data: any[]

      Event data

    Returns EventEmitter

    The instance of the class itself

    Summary

    Emits an event

  • Parameters

    • event: "accountsChanged" | "pair" | "connect" | "disconnect" | "chainChanged" | "message"

      Event name

    • callback: Function

      Callback function

    Returns EventEmitter

    The instance of the class itself

    Summary

    Adds a listener to the event

  • Parameters

    • event: "accountsChanged" | "pair" | "connect" | "disconnect" | "chainChanged" | "message"

      Event name

    • callback: Function

      Callback function

    Returns EventEmitter

    The instance of the class itself

    Summary

    Removes a listener from the event