Not setting isConnected until socket is actually open