Hierarchy

Constructors

Properties

_events: Map<"cancel" | "event" | "ready", Set<Function>>
_filter: EventFilter
_init: boolean
_socket: NostrSocket
_sub_id: string

Accessors

Methods

  • Parameters

    • event: string

    Returns Set<Function>

  • Parameters

    • event: string

    Returns void

  • Type Parameters

    • K extends "cancel" | "event" | "ready"

    Parameters

    Returns void

  • Type Parameters

    • K extends "cancel" | "event" | "ready"

    Parameters

    • topic: K

    Returns boolean

  • Type Parameters

    • K extends "cancel" | "event" | "ready"

    Parameters

    • event: K
    • method: ((args) => void | Promise<void>)
        • (args): void | Promise<void>
        • Parameters

          Returns void | Promise<void>

    Returns void

  • Type Parameters

    • K extends "cancel" | "event" | "ready"

    Parameters

    • event: K
    • method: ((args) => void | Promise<void>)
        • (args): void | Promise<void>
        • Parameters

          Returns void | Promise<void>

    Returns void

  • Type Parameters

    • K extends "cancel" | "event" | "ready"

    Parameters

    • event: string
    • method: ((args) => void | Promise<void>)
        • (args): void | Promise<void>
        • Parameters

          Returns void | Promise<void>

    Returns void

  • Returns Promise<unknown>

  • Returns Promise<unknown>

  • Type Parameters

    • K extends "cancel" | "event" | "ready"

    Parameters

    • event: K
    • method: ((args) => void | Promise<void>)
        • (args): void | Promise<void>
        • Parameters

          Returns void | Promise<void>

    • timeout: number

    Returns void

Generated using TypeDoc