i need to design my own device with websocket

gopal5 years ago

I have my own device, it needs to connect the traccar server thow WebSocket. I need to path of WebSocket to send the data for port 5023, and give the example data send frames

ex :GET ws://52.12.XXX.XX:8082/api/socket HTTP/1.1
Host: 52.12.XX.XX:8082
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36
Upgrade: websocket
Origin: http://52.12.XXX.XX:8082
Sec-WebSocket-Version: 13
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: JSESSIONID=node0w3j7o44wbr49caujepz12c7t14645.node0; 
Sec-WebSocket-Key: 85O+Qj+A7ZBHEQP8jsGz4A==
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits

please send me the example

Anton Tananaev5 years ago

Port 5023 does not use WebSockets or even HTTP. I don't really understand the question.

gopal5 years ago

i need to connect my device with the websocket
and send the data

Anton Tananaev5 years ago

Why is that a requirement? Traccar doesn't currently support it.

gopal5 years ago

i need the traccar data receiving path and format on the web socket

Anton Tananaev5 years ago

What's the point of asking here if you completely ignore answers?

gopal5 years ago

sir, please give the web socket path for sending the data