Mspublish
Bun

method

RedisClient.spublish

channel: KeyLike,
message: string
): Promise<number>;

Post a message to a shard channel

@param channel

The shard channel name

@param message

The message to publish

@returns

Promise that resolves with the number of clients that received the message

Referenced types

type KeyLike = string | ArrayBufferView | Blob