Make WebSocket.ReadyState use the ReadyState constants
Documentation improvements