Error: operation has timed out #4568
Unanswered
rasheed-asahi
asked this question in
Q&A
Replies: 2 comments 3 replies
-
io.timeout(5000).emit("hello", "world", (err, responses) => {
if (err) {
// some clients did not acknowledge the event in the given delay
} else {
console.log(responses); // one response per client
}
}); Reference: https://socket.io/docs/v4/broadcasting-events/#with-acknowledgements |
Beta Was this translation helpful? Give feedback.
3 replies
-
I added |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Frequently getting this error "Error: operation has timed out" in my sails logs. The error message points to this location "socket.io\dist\broadcast-operator.js:181:30".
Can somebody help me with this?
Error from sails log given below:
Error: operation has timed out
at Timeout._onTimeout (socket.io/dist/broadcast-operator.js:181:30)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
Node Version:16.10.0
Socket.io Version: 4.5.4
Sails Version: 1.5.3
Beta Was this translation helpful? Give feedback.
All reactions