isSocketConnected

Checks if the chat socket is connected.