Skip to Content
HeronJS 3.6 with fully support Typescript 6 is released 🎉
WebSocketQuick Start

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/ws

After installation, you can create WebSocket controllers, register them in your root module, and configure the WebSocket subserver in your application bootstrap.

Last updated on