add basic chat functionality using socket.io
set the chat function as multiple clients can chat with each other