what if I emit same event in on #4477
Unanswered
navneetgarggate6
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Brother this is python |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi! This is totally OK in any implementation. The only potential downside is that it might be a little harder to follow the logic: io.on("connection", (socket) => {
socket.emit("helloTest");
socket.on("helloTest", () => {
// ...
});
}); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
what if I wrote following code
Is this ok ?
Beta Was this translation helpful? Give feedback.
All reactions