Module: Observer

Observes Redis keyspace events and notifies clients of updates

Source:

Methods

(static) start() → {Promise}

Start the subscription and observance of keyspace events.

Source:
Returns:

A promise resolved when the subscription starts

Type
Promise

(private, inner) expireClient(client)

Handle an expired client.

Parameters:
Name Type Description
client Client

The expired client

Source:

(private, inner) handleMessage(_pattern, channel, message)

Handle a message received by the event subscriber.

Parameters:
Name Type Description
_pattern string

The pattern the message matches

channel string

The channel the message came over

message string

The message that was received

Source:

(private, inner) publishEvent(eventName, subject)

Publish an event to all clients connected to a space.

Parameters:
Name Type Description
eventName string

The name of the event

subject Client

The subject client

Source: