Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 19:16:18 +0000



Post From: Connecting to DTC with javascript websockets

[2021-11-29 16:53:58]
KylieV1618 - Posts: 59
Yeah I want to use JSON encoding.
I cant establish a connection to the port it doesnt seem :(
It shows open in netstat though. when I do netstat -a

But....

ws://127.0.0.0.1:11099 and ws://0.0.0.0:110999. both dont work?? Is there another way to connect that I should try?
Or maybe I have to send the connect/logon request??

How do I do that with websockets? Like what is the format? (JSON?)
Yes Ill be connecting from a webbrowser


EDIT: I did also download a Python version of a DTC implementation.
https://github.com/jseparovic/python-ws-dtc-client
ANd that seems to be able to connect to the port just fine. The websockets however, also dont work in that implementation either though :(
The REST api they programmed does though.

But yeah, the websockets dont. But thats probably a different issue, since their websockets go through the API server they setup.
I posted an Issue on their Github about it
https://github.com/jseparovic/python-ws-dtc-client/issues/2
Date Time Of Last Edit: 2021-11-29 17:56:22