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

closeConnection()

This operation closes the current connection to the Milvus server.

JavaScript
closeConnection(): Promise<CONNECT_STATUS>

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()