Skip to content

Redis Adapter doesn't seem to be working #1593

@austinh

Description

@austinh

Ive tried using the redis adapter as specified in the docs in combination with the socket.io-emitter in a different process and while the socket.io-emitter is working, and even redis is receiving data, the actual socket.io server is not picking up any events emitted to it.

Redis is connected, its receiving data, and socket.io-emitter is obviously working or else redis wouldn't receive data in redis-cli monitor

var server = require('http').Server();
var io = require('socket.io')(server);
var redis = require('socket.io-redis');
io.adapter(redis({ host: 'localhost', port: 6379 }));
server.listen(8080);

that is the code i'm using. Whats wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions