Support Board
Date/Time: Sat, 01 Mar 2025 07:55:12 +0000
Post From: New websocket
[2020-04-25 03:25:07] |
JasonS - Posts: 11 |
I realized I wasn't sending a null char on the end, so I added a null char, now I get a size error. Even when I send the correct size. Is this Size attribute needed for JSON? What's the error saying here? Received message with an invalid size (167)
DTC Protocol server | Incoming connection from 192.168.1.7. | 2020-04-24 23:22:07.937
DTC client #36. 192.168.1.7 (3) | Creating socket. | 2020-04-24 23:22:07.938 WSServer | DTC client #36. 192.168.1.7 (3) | Start Server | 2020-04-24 23:22:07.948 WSServer | DTC client #36. 192.168.1.7 (3) | Switch to HANDSHAKE | 2020-04-24 23:22:07.948 WSServer | DTC client #36. 192.168.1.7 (3) | Switch to READY_DATA | 2020-04-24 23:22:07.948 WSServer | DTC client #36. 192.168.1.7 (3) | Response HANDSHAKE with status code 101 | 2020-04-24 23:22:07.948 JSON data: {"ClientName": "DTC Client", "HeartbeatIntervalInSeconds": 120, "Password": "xxxxxx", "ProtocolVersion": 8, "Size": 167, "TradeMode": 3, "Username": "xxxxxx"} | 2020-04-24 23:22:07.959 DTC client #36. 192.168.1.7 | Received message with an invalid size (167). | 2020-04-24 23:22:07.959 * DTC client #36. 192.168.1.7 (3) | CloseSocket call. | 2020-04-24 23:22:07.959 Deleting individual DTC server: DTC client #36. 192.168.1.7 | 2020-04-24 23:22:07.959 DTC client #36. 192.168.1.7 (3) | Shutdown started. Waiting for graceful close. | 2020-04-24 23:22:07.959 DTC client #36. 192.168.1.7 (3) | Socket gracefully closed by remote side. | 2020-04-24 23:22:07.959 DTC client #36. 192.168.1.7 (3) | Closed. | 2020-04-24 23:22:07.959 DTC server: DTC client #36. 192.168.1.7 successfully deleted. | 2020-04-24 23:22:07.961 |