Skip to main content

Node — Initialization

Install @signal-js/node and create one client with createSignalNode(). Use it in plain Node.js http/https servers or in Express. Reuse the same client across all requests.

Installation

Using with Node.js

Create the client at startup and a helper to read tracing headers from http.IncomingMessage:

Using with Express

Same client; read headers from req.headers:
Create one createSignalNode() instance per process and reuse it. For session correlation, the client must send tracing headers; see Vue or React for addTracingHeaders.

Next steps