🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

milvus-logo
LFAI
< Docs
  • Node
    • Client

closeConnection()

It is recommended to use this method to close the connection to Milvus only when all the required tasks have been completed to avoid any potential data loss or system errors.

Example

import { MilvusClient } from "@zilliz/milvus2-sdk-node";

new milvusClient(MILUVS_ADDRESS).closeConnection();

Response

// grpc client returns closed -> 4, connected -> 0
4;

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?