-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Need ability to arbitrarily emit with callback to a socket client. #1656
Comments
I believe you can do this
However, I found an issue with callbacks on the client side after 1.0.2 |
@mneil awesome! |
Yup, that's the main reason we did away with the previous public API. That will work on single-node only. |
Will this work in a cluster if using the redis adapter? |
@evanlucas it still wont. You'll need to handle your own acknowledgments by manually tracking some type of acknowledgment ID tied to a cached callback function. Also, need to make sure you timeout those callbacks and clean up memory in case you never get a response :) |
That issue was closed automatically. Please check if your issue is fixed with the latest release, and reopen if needed (with a fiddle reproducing the issue if possible). |
0.9.x of Socket.io allowed you to get a socket by id and emit to it with a callback such as:
With 1.0.x we can only broadcast to the channel/id of a socket.
The text was updated successfully, but these errors were encountered: