demo code for a socket-cluster-based chat