-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated messages #9
Comments
I have the same problem. Any solution? |
I had this problem when using this solution on Heroku because they have a load balancer in front of the server which causes problems. I modifed the code to use the connection._server.connectionKey string as an index and pull the port number and use that as the index, this code may work for you if you are behind a load balancer and the setup is similar to Heroku.
|
@elad, Regarding issues (#7 and #15), I just tried the above idea and found that the port at the end of connection.server._connectionKey appear to be always the same, which is the listening port (e.g., 9000) of the master process. So, I guess connection.server._connectionKey cannot be used as the worker_index. I also tried to use connection.remotePort as the worker_index, and of course as expected it didn't work :-) https is almost always a requirement. I agreed with you that using reverse proxy (nginx) is the right choice for the most part. At least, we don't have another choice at this moment :-) I know you probably are really busy now, but if possible could you please still share you idea on this problem since it has become a blocking issue. Thanks again for sharing your ideas and the contribution you already made! |
I'm looking for a way to handle the duplicated messages I got when I emit a message with this code, any idea?
The text was updated successfully, but these errors were encountered: