 <p>If i understand correctly you are trying to implement event based actions. Yes node.js has got some excellent web socket libraries such as <a href="https://github.com/Automattic/socket.io" rel="nofollow">socket.io</a> and <a href="https://github.com/sockjs/sockjs-client" rel="nofollow">sack.js</a></p> <p>You need to understand nodejs <a href="https://developer.yahoo.com/blogs/ydn/part-1-understanding-event-loops-writing-great-code-11401.html" rel="nofollow">event driven</a> pattern.</p> <p>Websocket protocol helps maintain full duplex connection between server and client. You can notify clients when any action happens in server and similar you can notify server when any action happens in client. Libraries provide flexibility to broadcast event to all connected client or selected ones. </p> <p>So it is basically <strong>emit</strong> and <strong>on</strong> that you will be using often. Go through the documentation, it will not take much time to learn. Let me know if you need any help.</p>