Function WebSocketPeer.isConnectedToHost

Returns true if this peer is currently connected.

bool isConnectedToHost() nothrow @nogc const;