Fix bug where script used incorrect WebSocket URL