Support Board
Date/Time: Sat, 01 Mar 2025 08:16:10 +0000
Post From: New websocket
[2020-04-24 23:10:30] |
JasonS - Posts: 11 |
Hi, Are you able to please add some sample JSON request/responses in the documentation? Just so developers can have a basic understand of login procedure and retrieving account info, or something simple. Just having no example makes it difficult to understand what the correct format is. In regards to the LOGIN sequence, am I doing something wrong here? The client can conenct to the WSServer and send a message but the server does nothing. WSServer | DTC client #13. 192.168.1.4 (3) | Start Server | 2020-04-24 19:05:11.976 WSServer | DTC client #13. 192.168.1.4 (3) | Switch to HANDSHAKE | 2020-04-24 19:05:11.976 WSServer | DTC client #13. 192.168.1.4 (3) | Switch to READY_DATA | 2020-04-24 19:05:11.976 WSServer | DTC client #13. 192.168.1.4 (3) | Response HANDSHAKE with status code 101 | 2020-04-24 19:05:11.976 JSON data: { "ClientName": "python_ws_client", "HeartbeatIntervalInSeconds": 60, "Password": "xxxxx", "ProtocolVersion": 6, "TradeMode": 3, "Type": 1, "Username": "xxxxx" } | 2020-04-24 19:05:11.977 DTC client #13. 192.168.1.4 | No activity on network socket. Closing network socket. Bytes in receive buffer: 0 | 2020-04-24 19:05:32.009 DTC client #13. 192.168.1.4 (3) | CloseSocket call. | 2020-04-24 19:05:32.009 Deleting individual DTC server: DTC client #13. 192.168.1.4 | 2020-04-24 19:05:32.009 DTC client #13. 192.168.1.4 (3) | Shutdown started. Waiting for graceful close. | 2020-04-24 19:05:32.009 DTC client #13. 192.168.1.4 (3) | Socket gracefully closed by remote side. | 2020-04-24 19:05:32.010 DTC client #13. 192.168.1.4 (3) | Closed. | 2020-04-24 19:05:32.010 DTC server: DTC client #13. 192.168.1.4 successfully deleted. | 2020-04-24 19:05:32.010 Cheers Jason Date Time Of Last Edit: 2020-04-24 23:11:17
|