Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SyncpsPubsub

syncps - pubsub service.

Hierarchy

  • TypedEventEmitter<Events, this>
    • SyncpsPubsub

Implements

Index

Constructors

Properties

Methods

Constructors

Properties

describe: string

Methods

  • close(): void
  • Publish a packet.

    Parameters

    • pub: Data

      a Data packet. This does not need to be signed.

    • Optional cb: PublishCallback

      a callback to get notified whether publication is confirmed, i.e. its hash appears in a sync Interest from another participant.

    Returns Promise<void>

    a Promise that resolves when the publication is recorded. It does not mean the publication has reached other participants.

Generated using TypeDoc