Repository navigation
How do i check if the client succesfully connected (node js)? #3748
Replies: 1 comment
|
You can use the connected attribute of the Socket object. socket.on("connect", () => {
console.log(socket.connected); // true
}); |
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.