Class to represent a Subscriber on Zenoh, created via calling declare_subscriber() on a session

Methods

  • Receives a new message on the subscriber note: If subscriber was created with a callback, this recieve will return undefined, as new samples are being sent to the callback.

    Returns Promise<void | Sample>

    Promise<Sample | void>

  • Undeclares a subscriber on the session

    Returns void