working on chat (socket.io)