Can I use timeout()
on once()
?
#4859
-
I know this::
But is this possible::
If not, do I have to use something like a socket.once(eventSessionId, listener);
setTimeout(() => socket.off(eventSessionId, listener), eventSessionLifetimelength); |
Beta Was this translation helpful? Give feedback.
Answered by
darrachequesne
Oct 23, 2023
Replies: 1 comment
-
Hi! No it's not possible. The solution you provided with the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Norlandz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
No it's not possible. The solution you provided with the
setTimeout()
should work well 👍