Support Board
Date/Time: Sun, 05 May 2024 09:54:52 +0000
Post From: Connecting to DTC with javascript websockets
[2021-11-30 21:13:43] |
KylieV1618 - Posts: 59 |
Ok I figured it out. My logon works let logon = { Type: 1, ProtocolVersion: 8, HeartbeatIntervalInSeconds: 120, ClientName: "DTC_CLIENT" }; socket.send(JSON.stringify(logon)+"\0") BUT... Doesn't seem my logoff does anything though?? Doesn't close the connection or anything. let logoff = { Type: 5, Reason: "Logoff button hit", DoNotReconnect:1 }; socket.send(JSON.stringify(logoff)+"\0") Doesnt seem to do anything. This is the exact same setup I have for the logon. So I know the null terminator works. Date Time Of Last Edit: 2021-11-30 21:47:38
|