implement socket.io & code a little chat function