An example chat application demonstrating sockets, pubsub and associations