Instance Method
punsubscribe(from:)
Unsubscribes the client from a pattern of Redis channel names from receiving any future published messages.
func punsubscribe(from patterns: [String]) -> EventLoopFuture<Void>
Parameters
patternsA list of glob patterns to be unsubscribed from.
Return Value
A notification NIO.EventLoopFuture that resolves once the subscription(s) have been removed from Redis.
Discussion
See PUNSUBSCRIBE
Note
This method does not unsubscribe subscriptions made with subscribe(to:messageReceiver:onSubscribe:onUnsubscribe:).
Important
If no more subscriptions (pattern or channel) are active on the client, the client will be taken out of its “PubSub mode”.
It will then be allowed to use any command like normal.
See the PubSub specification