4th and last exanple from socket.io