Skip to content

Question about Blop in redis client #921

@TidyHuang

Description

@TidyHuang

Not sure if it suitable to raise a question here.

I am using API createClient to connect redis server and use blpop API to watch an list message. It seems everything goes fine. However, after the server restart, the client can't be notified when the block list change while the client can get the reconnecting message.

Any ideas please.

Code:


rclient = redis.createClient(port, host);

rclient.on('reconnecting', onReconnecthandle);
rclient.on('error', onErrorhandle);
rclient.on('end', onEndhandle);

rclient.blpop('my_list', 0, function(err, data) {
});


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