bugfix in WebSocket.isReady()