QVAC Logo

ping( )

Sends a ping request to the server and returns the pong response.

function ping(): Promise<{
  number: number;
  type: "pong";
}>;

Returns

Promise<{ number: number; type: "pong" }> — A promise that resolves to a pong response containing a number.

FieldTypeRequired?Description
numbernumberResponse number
type"pong"Response type

Throws

When the response type is not "pong".

On this page