Skip to content

JSON flag reset #321

@renajohn

Description

@renajohn

I'm using ZeroMQ and I've binded my ZeroMQ socket with my Socket.IO client in the following way:

// client is a socket.io client
client.__listener = client.json.send.bind(client);

zmqSocket.on("message", client.__listener);      

This use to work just fine with version 0.6, where I was calling client.__listener = client.send.bind(client).

Here is the workaround I'm using:

client.__listener = function(msg){
   client.json.send(msg);
};  

zmqSocket.on("message", client.__listener);          

Any idea why the first snipped doesn't work?

Thanks,
Renault

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