var S: string;
var lvBytes:TBytes;
if not FWsClient.Active
then FWsClient.Open('ws://localhost:3000/echo')
else ? how CHECK FWsClient is in processed
? if FWsClient.Processed then exit
===========================================
S := '{"method":"PingDevice","step":0}';
lvBytes := StringToUtf8Bytes(S);
FWsClient.SendBuffer(@lvBytes[0], Length(lvBytes), OPT_TEXT);
? how WAIT finally received data
? FWsClient.WaitingCompletion
================================
create wsClient:
send data: