Removing copied WebSocket code and using textalk/websocket instead.