PureCode Software interview question

How do you implement real-time communication in a Node.js application using WebSockets?