WebSockets in HeronJS are used for real-time, bidirectional communication between the server and connected clients. Under the hood, HeronJS uses socket.io as the transport and messaging layer.
Install the WebSocket package
To enable WebSocket support, install the HeronJS WebSocket module.
npm install @heronjs/wsAfter installation, you can create WebSocket controllers, register them in your root module, and configure the WebSocket subserver in your application bootstrap.
Last updated on