Socket.IO enables real-time bidirectional event-based communication.
The page, https://socket.io/get-started/chat/, gives you a very good starting point.
My intention is that I will rewrite my IC-7410 control programs to realize web based services.