Skip to content

not recieving any events in node, why? #26

@flyon

Description

@flyon

Im trying to get this to work on my localhost.

on node:

    //we create a separate pub and sub so that we can specify authentication
    var ioPub = redis.createClient(settings.redisPort, settings.redisHost, {auth_pass: settings.redisPassword});
    var ioSub = redis.createClient(settings.redisPort, settings.redisHost, {return_buffers: true, auth_pass: settings.redisPassword});
    var adapter = redisio({pubClient: ioPub, subClient: ioSub});
    this.io = require('socket.io')(server.getHttpServer(), {enablesXDR: true});
    this.io.adapter(adapter)

settings are: localhost and port 6379, password = false in my local environment.

in PHP

   $emitter = new \SocketIO\Emitter(); // If arguments are not provided, they will default to array('port' => '6379', 'host' => '127.0.0.1')
   $emitter->emit($eventName,$data);

Im seeing action in the redis window, but I dont recieve any events in node. Any idea why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions