@pluv/pubsub-redis v0.17.3
Disclaimer: This package is currently in preview and may have breaking changes between versions. Please wait for a
v1.0.0
stable release before using this in production.
@pluv/pubsub-redis
PubSub for @pluv/io rooms on distributed systems. Available for Node.js only.
👉 See full documentation on pluv.io. 👈
Installation
# npm
npm install @pluv/pubsub-redis ioredis
# yarn
yarn add @pluv/pubsub-redis ioredis
# pnpm
pnpm add @pluv/pubsub-redis ioredis
Basic Example
import { createIO } from "@pluv/io";
import { PersistanceRedis } from "@pluv/persistance-redis";
import { PubSubRedis } from "@pluv/pubsub-redis";
import { platformNode } from "@pluv/platform-node";
import { Redis } from "ioredis";
const redis = new Redis({ /* redis config here */ });
export const io = createIO({
platform: platformNode({
persistance: new PersistanceRedis({ client: cluster }),
pubSub: new PubSubRedis({
publisher: cluster,
subscriber: cluster,
}),
}),
});
Reference
Check us out on GitHub for more information on how to use @pluv/io
.
24 days ago
25 days ago
25 days ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
5 months ago
5 months ago
5 months ago
5 months ago
9 months ago
9 months ago
8 months ago
8 months ago
9 months ago
7 months ago
9 months ago
6 months ago
5 months ago
10 months ago
10 months ago
9 months ago
12 months ago
12 months ago
12 months ago
11 months ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago