We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated my node version from node 14.16.0 to node 16.0.0.
const { RedisPubSub } = require('graphql-redis-subscriptions/dist/redis-pubsub'); export const pubSub = new RedisPubSub({ publisher: new Redis(readOptions), subscriber: new Redis(readOptions), })
The pubSub.publish stopped working. Working fine with Node 14.16.0
The text was updated successfully, but these errors were encountered:
any correction in below code ?? my node vr. is 18.16.1 graphql-redis-subscriptions version 2.6.0
const subs = new Redis({ host: "127.0.0.1", port: 6379, retryStrategy: (times) => { // reconnect after return Math.min(times * 50, 2000); }, // db: 0, // password: process.env.REDIS_PASS, }); const pubs = new Redis({ host: "127.0.0.1", port: 6379, retryStrategy: (times) => { // reconnect after return Math.min(times * 50, 2000); }, // db: 0, // password: process.env.REDIS_PASS, }); const redisIns = process.env.NODE_ENVIRONMENT === "production" ? { publisher: subs, subscriber: pubs, } : {}; const pubsub = new RedisPubSub({ ...redisIns, connectionListener: (err) => { if (err) { console.log("err", err); } else { console.log("Pubsub: Succefuly connected to redis"); } }, });
Sorry, something went wrong.
No branches or pull requests
Updated my node version from node 14.16.0 to node 16.0.0.
const { RedisPubSub } = require('graphql-redis-subscriptions/dist/redis-pubsub');
export const pubSub = new RedisPubSub({
publisher: new Redis(readOptions),
subscriber: new Redis(readOptions),
})
The pubSub.publish stopped working. Working fine with Node 14.16.0
The text was updated successfully, but these errors were encountered: