How do i check if the client succesfully connected (node js)? #3748
-
The title says it all |
Beta Was this translation helpful? Give feedback.
Answered by
darrachequesne
Jan 11, 2021
Replies: 1 comment
-
You can use the connected attribute of the Socket object. socket.on("connect", () => {
console.log(socket.connected); // true
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
darrachequesne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the connected attribute of the Socket object.