i used socket.io libaray for nodejs chatting with ios code example Example: simple socket.io chat npm install socket.io