Skip to content

Redis stream adapter not working with valkey 8/9 as socket io adapter #56

@Gitpream

Description

@Gitpream

Code as follows

const sentinelHosts = process.env.REDIS_SENTINELS.split(',').map(hostPort => {
const [host, port] = hostPort.split(':');
return { host, port: parseInt(port) };
});

const pubClient = new Redis({
sentinels: sentinelHosts,
name: process.env.REDIS_MASTER_NAME
});

const subClient = pubClient.duplicate();
// 3. Attach Event Listeners to Check Connection
io.adapter(createAdapter(pubClient, subClient));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions