Establishes the link. Called again on every reconnect.
OptionalrecvWaits for the next message on a subscribed topic, or resolves to null
once the link has ended. Present, it is called again as soon as it settles,
from the moment the transport connects, and what it delivers is queued for
the receiving side. One that throws ends the link until the next connect, and
the next receive rejects with what it threw. Absent, the link only sends and
a ladder never listens on it.
Publishes a payload to a topic.
Subscribes to a topic filter, in the syntax the link understands. A ladder places its filters again each time the link reconnects.
The operations a link written in JavaScript supplies to stand as a transport.
Implement this for a link pamoja does not ship, a vendor SDK, a proprietary radio, or a cloud client, and hand it to
Transport.fromHandlers. The result composes like any transport: as a ladder rung, under a fault injector, or driven directly. Each method may return a promise or a plain value, and is called on the object, so a class instance works as it is. A method that throws or rejects fails the call that reached it, with the message it threw.