Optional ReadonlystatusM70c: the ioredis connection state ('ready' when usable). Optional for
the same reason as ping.
OptionalconnectOptionaldisconnectForcibly closes the connection without waiting for the server and stops
reconnecting. Optional; the real ioredis client exposes it. close()
calls it when quit() fails — during an outage — because a QUIT that
never reached the server does not stop ioredis reconnecting: without
it the connection comes back and re-subscribes after the application has
stopped. An injected client without it is left as quit() left it.
Removes a previously registered listener.
The event name
The listener to remove
Registers an event listener. The transport listens for 'message'.
The event name
Invoked with the channel and the raw message
OptionalpingPublishes a message to a channel.
The channel name
The message payload
The number of subscribers that received it
Closes the connection.
Subscribes to a channel.
The channel name
The number of channels this connection is now subscribed to
Unsubscribes from a channel.
The channel name
The
ioredis-shaped client surface the Redis transport uses.Declared structurally so
ioredisis never a hard dependency (§12.2) and an application may inject any compatible client.Since
0.2.0