Websocket: callback not functioning after window.locaiton=

Please post code correctly on forum, not images from your editor …

SEE: [How to] Post correctly formatted and colorized code on the forum?