a simple demo for using socket.io