How to Write a p2p Chat App in Node.js