Exposes the connected? method.

This can be used to determine if the websocket is in a connected state,
which is in turn useful for automatically calling open, if required, by
higher level clients.