Returns the current state of the WebSocket connection.
Documentation for this section has not yet been entered.