Skip to main content
Module

x/redis/pubsub.ts>RedisSubscription

🦕 Redis client for Deno 🍕
Very Popular
Latest
interface RedisSubscription
import { type RedisSubscription } from "https://deno.land/x/redis@v0.32.3/pubsub.ts";

Type Parameters

optional
TMessage extends ValidMessageType = DefaultMessageType

Properties

readonly
isClosed: boolean

Methods

receive(): AsyncIterableIterator<RedisPubSubMessage<TMessage>>
receiveBuffers(): AsyncIterableIterator<RedisPubSubMessage<Binary>>
psubscribe(...patterns: string[]): Promise<void>
subscribe(...channels: string[]): Promise<void>
punsubscribe(...patterns: string[]): Promise<void>
unsubscribe(...channels: string[]): Promise<void>
close(): void