1.1.1 • Published 5 years ago

@mangar2/publish v1.1.1

Weekly downloads
8
License
LGPL-3.0-or-later
Repository
github
Last release
5 years ago

Abstract

This is part of the http based mqtt broker. Use this class to publish messages to the http "mqtt style" message broker

Functionality

Provides a method to publish messages with qos = 0, 1, 2.

Usage example

Publish the message with topic /a/a, value 1, reason "test", QoS 0, retain 0: result = await publish.publish(new Message("/a/a", 1, "test"), 0, 0);

result structures

result = either true, false (for QoS=1..2) or undefined (for QoS = 0)

close

close closes all connections

1.1.1

5 years ago

1.1.0

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago