Sample code for socket.io study