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.