I\'ve been at this for days now and this is probably my final attempt at this. Here is the server code to create the websocket.: