[SOLVED] Websocket setup on Synology

Hello,
This script make possible websocket notification when using synology DSM Reverse-proxy.
Thanks for your work.
I slightly modified the script by setting the ip address instead of localhost to have it working. And add a \ before " for this : "upgrade".
(I also add some comments, and echo to have a trace in the log)