Move backend to seperate file and change websocket urls