-
• #2
That's just the way it works.
conn:true
means that the actual connection succeeded (i think) - however when the socket is undefined it means the connection has now been closed -
• #3
...which means we have to check
if sckt isnt undefined and conn is true
in order to ensure that we have a working connection between the server, right? -
• #4
Ideally you just hook onto the
close
anderror
events?
How come the
sckt is undefined
andconn is true
?