Ping Method
Sends a Ping request to the remote host.
Syntax
async websocket.ping(): Promise<void>
Remarks
This method sends a Ping request to the remote host and waits for a corresponding Pong response.
The Timeout property specifies how long to wait for the Pong response.