We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Make it possible to access a socket in a different node without broadcasting. I cant use ack:s when emitting from a socket that I got from
const sockets = io.of(namespace).fetchSockets() const socket = sockets.find(socket => socket.id === recipientSocketId) socket.emit("path", data, (ack) => {data})
or io.of(namespace).to(recipientSocketId).emit("path", data, (ack) => {data})
io.of(namespace).to(recipientSocketId).emit("path", data, (ack) => {data})
The error message I get is "Callbacks are not supported when broadcasting at BroadcastOperator.emit"
The text was updated successfully, but these errors were encountered:
Hi!
Which version of socket.io are you using? Callbacks when broadcasting are supported since version 4.5.0: https://socket.io/docs/v4/changelog/4.5.0#broadcast-and-expect-multiple-acknowledgements
socket.io
4.5.0
The redis adapter does too: https://socket.io/docs/v4/redis-adapter/#supported-features
Sorry, something went wrong.
No branches or pull requests
Make it possible to access a socket in a different node without broadcasting. I cant use ack:s when emitting from a socket that I got from
or
io.of(namespace).to(recipientSocketId).emit("path", data, (ack) => {data})
The error message I get is "Callbacks are not supported when broadcasting at BroadcastOperator.emit"
The text was updated successfully, but these errors were encountered: