nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 307 forks source link

Sending subsequent SUBSCRBE commands via WebSocket may or may not return a success #107

Open adamgoose opened 9 years ago

adamgoose commented 9 years ago

When using a package that I wrote at https://github.com/adamgoose/angular-webdis, my angular application sends several subsequent SUBSCRIBE commands. About 20% of the time, some of the later commands are not acknowledged by Webdis. Thoughts?

denisvolokh commented 9 years ago

Have you found solution for your issue?

I had similar problem with sending subsequent SUBSCRIBE commands and found solution where I send it in one command like socket.send(JSON.stringify(["SUBSCRIBE", "channel1", "channel2"]))

adamgoose commented 9 years ago

I have not. My issue is that the javascript package has to send the "SUBSCRIBE" commands separately, in order to handle the callbacks properly.