Event listener is sometimes not called after the event is fired #3996
-
Hi, This is a sample of the code I used: function(socket: SocketIO.Socket) {
ConnectionCounter.increment()
logConnection(socket)
socket.use(SocketMiddlewares.logEvent(socket))
socket.on('disconnect', SocketEventHandlers.onDisconnect)
// The pipe function allows us to chain multiple function calls
socket.on('stopMachine', pipe(fixEnvForMsg, SocketEventHandlers.onStopMachine))
// A bunch more events like this below
// ...
} I have a confirmation (through log lines) that the event is fired and that the machine receives it. But it seems that the listener isn't always called after that. It only happens sometimes though, and I can't find an explanation to it (about 10 times out of 200) A few more things to note:
Was there any change on the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! That seems weird indeed. The only change that might be related to this behavior is 494c64e, but I'm not sure that's your case. Are you able to reliably reproduce? A sample project reproducing the issue would help a lot. |
Beta Was this translation helpful? Give feedback.
Hi! That seems weird indeed. The only change that might be related to this behavior is 494c64e, but I'm not sure that's your case.
Are you able to reliably reproduce? A sample project reproducing the issue would help a lot.