Open another window to the same URL to create the chat window.
This example will use the Node.js server's ability to relay messages to discover other browser windows
attached to the same server. It will then create a chat window to talk to them.
Additionally, it will ensure that only one connection is created to the server, by using 'chat-server.js'
and 'comm-worker.js' to execute a leader election strategy, which will delegate a socket.io connection
responsibility to one of the open windows.
Try try this, open many windows all pointing to this page, and noticed that there is only one Socket.io
connection. Likewise, you can change the port to '8283' and that will create a new socket.io connection,
and any windows opened to that URL will all use the same socket.io connection.
All windows will use the shared worker to communicate with each other, and the socket.io connection to
communicate with windows accessing the server from the other port.