Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 19:39:05 +0000



Post From: DTC Protocol - JSON heartbeat (ping client->server) - bug?

[2023-01-23 18:23:33]
User230940 - Posts: 121
I add something during initiation of the connection:

connection init
$client->send_text_frame(
encode_json {
Type=>1,
ProtocolVersion=>8,
HeartbeatIntervalInSeconds=>120,
ClientName=>'Client'
}
);
}

DTC Protocol server | Incoming connection from 192.168.17.201. | 2023-01-23 19:01:31.248
DTC client #20. 192.168.17.201 (2) | Creating socket. | 2023-01-23 19:01:31.251
DTC client #20. 192.168.17.201 (2) | New receive buffer size: 262144 | 2023-01-23 19:01:31.251
DTC client #20. 192.168.17.201 (2) | Allocated send buffers: 32 of 131072 bytes. | 2023-01-23 19:01:31.252
WSServer | DTC client #20. 192.168.17.201 (2) | Start Server | 2023-01-23 19:01:31.252
WSServer | DTC client #20. 192.168.17.201 (2) | Switch to HANDSHAKE | 2023-01-23 19:01:31.252
WSServer | DTC client #20. 192.168.17.201 (2) | Switch to READY_DATA | 2023-01-23 19:01:31.252
WSServer | DTC client #20. 192.168.17.201 (2) | Response HANDSHAKE with status code 101 | 2023-01-23 19:01:31.252
JSON data: {"HeartbeatIntervalInSeconds":120,"ProtocolVersion":8,"Type":1,"ClientName":"Client"} | 2023-01-23 19:01:31.260

DTC client #20. 192.168.17.201 | No heartbeat received after 20s. Closing network socket. Bytes in receive buffer: 0 | 2023-01-23 19:01:51.748
DTC client #20. 192.168.17.201 (2) | CloseSocket call. | 2023-01-23 19:01:51.748


I think request for inititiation the Connection does not take place. The heartbeat interval is not changed.

Do I have to change / add something to my init JSON String?

tbanks