All,
We have been struggling for some time with a continuous failure of websocket connections.
Websocket connection kept falling over (failing) resulting in live positions only updating once per 60 or so seconds.
We're approaching traccar through a subdomain (portal.domain.com) on HTTPS. We finally managed to resolve the issue through some combined information in the documentation section on this page.
The apache2 config for both the config for port 80 and the config for port 443 should include the below:
ProxyRequests off
ProxyPass /api/socket ws://localhost:8082/api/socket
ProxyPassReverse /api/socket ws://localhost:8082/api/socket
ProxyPass / http://localhost:8082/
ProxyPassReverse / http://localhost:8082/
This is listed as config for running traccar in a subfolder AFTER the domain so for instance domain.com/traccar, but not if you're using a subdomain.
Hope this helps others....
All,
We have been struggling for some time with a continuous failure of websocket connections.
Websocket connection kept falling over (failing) resulting in live positions only updating once per 60 or so seconds.
We're approaching traccar through a subdomain (portal.domain.com) on HTTPS. We finally managed to resolve the issue through some combined information in the documentation section on this page.
The apache2 config for both the config for port 80 and the config for port 443 should include the below:
This is listed as config for running traccar in a subfolder AFTER the domain so for instance domain.com/traccar, but not if you're using a subdomain.
Hope this helps others....