procedure Ping; overload;

procedure Ping(const Data: TBytes); overload;

 

Description

Call the Ping message to send a ping control message to a WebSocket server and wait for a response pong message from the server. If after the time specified in the Options.ReadWriteTimeout property, the client does not get a response from the server, the method will generate an error.

A Ping message may serve either as a keepalive or as a means to verify that the remote endpoint is still responsive.

 

Data is an array of bytes, which contains the sent message body.

 

See Also

OnControlMessage

PingAsync

Pong

TScWebSocketControlMessageType

 

SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support