I don?t want to be rude or something like this, but please learn the basics. And please do not push your topic more than 1 time per day. It does not work cause you need to have a server with configurated websockets. It?s not just download and it works.. Chats and multiplayer games are definitely advanced things.
If you would have read the whole thread for this example you would know that you need:
- A server
- Websockets configured(A simple Tutorial given)
In the file you see there are 2 global constants:
As Example there is port 50001 and the location is localhost, this works for sure in you local network but NOT online, cause this is just your loopback adress.
So it can never work that you just upload this example and can talk with friends ...