Skip to content

Why have both socket.connected and socket.disconnected? #4168

Answered by darrachequesne
ryanwc asked this question in Q&A
Discussion options

You must be logged in to vote

That's a good question, actually... It was added a while back, in socketio/socket.io-client@558f8b2

Is there actually some scenario where they are both true or both false?

No, I don't think this is possible.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ryanwc
Comment options

@darrachequesne
Comment options

Answer selected by darrachequesne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants