Shutting down

You can shut down an SDK with the close method to cleanly stop all its background processes, flush all its buffered logs and terminate all its connections:

process.on("SIGTERM", async () => {
  const hypertune = await getHypertune();
  await hypertune.close();
});

Last updated