Example on how to use socket.io