Hierarchy

Constructors

  • Parameters

    Returns NostrChannel

Properties

_events: Map<"cancel" | "close" | "error" | "ready" | "reject" | "msg", Set<Function>>
_filter: null | EventFilter
_init: boolean
_secret: null | Buff
_signer: SignerAPI
_socket: null | NostrSocket
_sub: null | NostrSub
log: {
    debug: ((...s) => null | void);
    info: ((...s) => null | void);
} = ...

Type declaration

  • debug: ((...s) => null | void)
      • (...s): null | void
      • Parameters

        • Rest ...s: unknown[]

        Returns null | void

  • info: ((...s) => null | void)
      • (...s): null | void
      • Parameters

        • Rest ...s: unknown[]

        Returns null | void

Accessors

Methods

  • Parameters

    • err: unknown
    • data: unknown

    Returns void

  • Parameters

    • event: string

    Returns Set<Function>

  • Parameters

    • event: string

    Returns void

  • Type Parameters

    • K extends "cancel" | "close" | "error" | "ready" | "reject" | "msg"

    Parameters

    Returns void

  • Type Parameters

    • K extends "cancel" | "close" | "error" | "ready" | "reject" | "msg"

    Parameters

    • topic: K

    Returns boolean

  • Type Parameters

    • K extends "cancel" | "close" | "error" | "ready" | "reject" | "msg"

    Parameters

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

          Returns void | Promise<void>

    Returns void

  • Type Parameters

    • T = any

    Parameters

    • topic: string
    • fn: ((msg) => void)

    Returns void

  • Type Parameters

    • K extends "cancel" | "close" | "error" | "ready" | "reject" | "msg"

    Parameters

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

          Returns void | Promise<void>

    Returns void

  • Type Parameters

    • K extends "cancel" | "close" | "error" | "ready" | "reject" | "msg"

    Parameters

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

          Returns void | Promise<void>

    Returns void

  • Type Parameters

    • K extends "cancel" | "close" | "error" | "ready" | "reject" | "msg"

    Parameters

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

          Returns void | Promise<void>

    • timeout: number

    Returns void

Generated using TypeDoc