Traccar Websocket does not send positions of new devices unless websocket connection is restarted

Porfirio Díaz 2 years ago

When new devices send positions to traccar, the devices are correctly added and I can see them in the web platform. The problem is that I don't receive these updates in the websocket, I need to restart the connection in order to receive positions.

If I manually I register a device before it sends positions, the problem doesn't occur. It only occurs when the device is registered automatically.

I use the following options in my configuration file:

<entry key='database.registerUnknown'>true</entry>
<entry key='database.registerUnknown.defaultGroupId'>1</entry
Anton Tananaev 2 years ago

Yes, I believe it's a limitation currently.

Porfirio Díaz 2 years ago

Is this limitation present also with the forwarding option?

<entry key='forward.enable'>true</entry>
Anton Tananaev 2 years ago

No, the issue with the user session. It doesn't get updated dynamically in this case. It shouldn't be a problem with forwarding.

Porfirio Díaz 2 years ago

Thanks a lot.