Finally got some sort of web-socket working for the scripts