跳到主要内容
版本:v2.6.x

closeConnection()

This operation closes the current connection to the Milvus server.

JavaScript
await milvusClient.closeConnection()

Request Syntax

JavaScript
milvusClient.closeConnection()

RETURN TYPE:

Promise<CONNECT_STATUS>

RETURNS:

A promise that resolves to the final status of the current connection to the Milvus server, which should be SHUTDOWN.

Example

JavaScript
milvusClient.closeConnection()