Moved getReadyState to WebSocket

Change-Id: Id84a904d650eeb3329b1be37756df1b6b76206a3