Track if the socket is connected