WebSocket: Don't use WebSocket.OPEN as it's not defined by the spec. Instead read the
OPEN property of the WebSocket instance.