Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
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.33.0/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