API Reference / API Methods / Keep alive (Node.js only)
Jan. 16, 2019

Keep alive (Node.js only)

Keep alive is activated by default.

Because of the nature of keep alive connections, your process will hang even if you don’t perform any further command. To fix this, we expose a client.destroy() method that terminates all remaining alive connections.

You should call this method when you are finished working with the AlgoliaSearch API, so that your process exits properly.

Keep alive is always activated in browsers.

Did you find this page helpful?

JavaScript