Class: ZMQ

ZMQ(settingsopt) → {ZMQ}

Connect and subscribe to ZeroMQ publishers.

Constructor

new ZMQ(settingsopt) → {ZMQ}

Creates an instance of a ZeroMQ subscriber.
Parameters:
Name Type Attributes Description
settings Object <optional>
Settings for the ZMQ connection.
Properties
Name Type Attributes Description
host String <optional>
Host for the ZMQ publisher.
port Number <optional>
Remote ZeroMQ service port.
Source:
Returns:
Instance of the ZMQ service, ready to run `start()`
Type
ZMQ

Methods

(async) start() → {ZMQ}

Opens the connection and subscribes to the requested channels.
Source:
Returns:
Instance of the service.
Type
ZMQ

(async) stop() → {ZMQ}

Closes the connection to the ZMQ publisher.
Source:
Returns:
Instance of the service.
Type
ZMQ