In the way you've published it, only works with your local server if it is running. It's not really online.rathinagiri wrote: I have uploaded hmgscript in hmgscript. So, we can test the behavior immediately.
If you are running the server on a home/office windows machine you will need to connect that machine to some service, like no-ip, forward the port 2000 and give it a domain name. Then change this line:
socket = new WebSocket( "ws://localhost:2000/harbour" );
To:
socket = new WebSocket( "ws://something.no-ip.org:2000/harbour" );