Remove unnecessary write() method from WebSocket class.