Websockets

baikunthareemala year ago

I am attempting to establish a WebSocket connection through a Python app, but I'm encountering difficulties in connecting to the server. What might be the issue?

Anton Tananaeva year ago

Are you planning to provide any details?

baikunthareemala year ago
Error: Unexpected server response: 503
Handshake Details
Request URL: http://localhost:8082/api/socket
Request Method: GET
Status Code: 503 Service Unavailable
Request Headers
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: XsG540AE9qZdVWQq5AqSuQ==
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Host: localhost:8082
Response Headers
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html;charset=iso-8859-1
Content-Length: 100
Server: Jetty(10.0.15)
Anton Tananaeva year ago

Are you logged in? And providing session cookie?

baikunthareemala year ago

no i dont know exactly how to login and provide session

Anton Tananaeva year ago

Please read the documentation first then.

baikunthareemala year ago

please tell me how can i check whether the WS connection from traccar is running or not