pamoja for TypeScript - v0.2.0
    Preparing search index...

    Class CoapClient

    A CoAP endpoint.

    Index
    • Binds the local socket so the endpoint can carry traffic.

      Returns Promise<void>

    • Releases the socket the endpoint holds.

      Returns Promise<void>

    • Whether the local socket is bound.

      Returns Promise<boolean>

    • Waits for the next message on an observed path, or null once the endpoint is closed.

      Parameters

      • OptionaltimeoutMs: number | null

        how long to wait before rejecting; a message that arrives later waits for the next receive.

      Returns Promise<TransportMessage | null>

    • Sends a payload to a resource path: bytes, or text such as a reading written out.

      Parameters

      • topic: string
      • payload: string | Buffer<ArrayBufferLike>

      Returns Promise<void>

    • Observes a resource path, so messages published to it reach recv.

      Parameters

      • topic: string

      Returns Promise<void>