Skip to content
FlagPilot
Menu

Node SDK

close

Stop polling and abort requests. Evaluation keeps working from memory.

Stops timers and the stream, aborts in-flight requests and rejects pending waitForInitialization calls. The last snapshot stays in memory, so evaluation keeps working after close.

Signature
close(): Promise<void>
Example
process.on('SIGTERM', () => void flags.close());

The SDK is @rollkit/sdk in the repository (packages/sdk). It is for server-side Node; browsers use a client key with the delivery API.