Support Board
Date/Time: Sun, 05 May 2024 18:00:29 +0000
Post From: Connecting to DTC with javascript websockets
[2021-11-30 03:09:37] |
KylieV1618 - Posts: 59 |
Still stumped on this... I follwed this other thread to try do it via JSON? New websocket But I get .. WSServer | DTC client #129. 127.0.0.1 (1) | Start Server | 2021-11-29 19:07:12.479 WSServer | DTC client #129. 127.0.0.1 (1) | Switch to HANDSHAKE | 2021-11-29 19:07:12.479 WSServer | DTC client #129. 127.0.0.1 (1) | Switch to READY_DATA | 2021-11-29 19:07:12.480 WSServer | DTC client #129. 127.0.0.1 (1) | Response HANDSHAKE with status code 101 | 2021-11-29 19:07:12.480 JSON data: [object Object] | 2021-11-29 19:07:12.502 Then if i JSON.stringify() it,.... WSServer | DTC client #130. 127.0.0.1 (1) | Start Server | 2021-11-29 19:08:37.972 WSServer | DTC client #130. 127.0.0.1 (1) | Switch to HANDSHAKE | 2021-11-29 19:08:37.972 WSServer | DTC client #130. 127.0.0.1 (1) | Switch to READY_DATA | 2021-11-29 19:08:37.972 WSServer | DTC client #130. 127.0.0.1 (1) | Response HANDSHAKE with status code 101 | 2021-11-29 19:08:37.972 JSON data: {"ClientName":"DTC Client","HeartbeatIntervalInSeconds":120,"Password":"xxxx","ProtocolVersion":6,"TradeMode":3,"Type":1,"Username":"xxxx"} | 2021-11-29 19:08:38.004 DTC client #130. 127.0.0.1 | No activity on network socket. Closing network socket. Bytes in receive buffer: 0 | 2021-11-29 19:08:57.954 DTC client #130. 127.0.0.1 (1) | CloseSocket call. | 2021-11-29 19:08:57.954 DTC client #130. 127.0.0.1 (1) | Shutdown started. Waiting for graceful close. | 2021-11-29 19:08:57.954 How the hell do I connect to DTC!!??? This is super frustrating. It should be easy In my settings Ive set the encoding to be JSON. Not automatic. Thought that might help but it didn't. Ive tried binary, Ive tried JSON. How do I do this!? Am I talking to myself here? Date Time Of Last Edit: 2021-11-30 03:11:29
|