Class: Redis

Redis(settingsopt) → {Redis}

Connect and subscribe to ZeroMQ servers.

Constructor

new Redis(settingsopt) → {Redis}

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

Methods

(async) start() → {Redis}

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

(async) stop() → {Redis}

Closes the connection to the Redis server.
Source:
Returns:
Instance of the service.
Type
Redis