Why have both socket.connected
and socket.disconnected
?
#4168
-
The Socket.IO Javascript client API specifies both socket.connected and socket.disconnected. The docs. Why? Why not just one or the other? It's confusing. Is there actually some scenario where they are both true or both false (and what does that scenario mean)? |
Beta Was this translation helpful? Give feedback.
Answered by
darrachequesne
Nov 14, 2021
Replies: 1 comment 2 replies
-
That's a good question, actually... It was added a while back, in socketio/socket.io-client@558f8b2
No, I don't think this is possible. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
darrachequesne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's a good question, actually... It was added a while back, in socketio/socket.io-client@558f8b2
No, I don't think this is possible.