TSW WebSocket API Help

Events

Subscribing to Events

To keep track of specific events, like location changes, you can subscribe to receive regular updates from the server.

Example: Subscribing to Location Updates To subscribe to location updates, simply send the following command to the server:

{ "subscribe": "pos", "interval": 1000, //optional, default value is 10000 ms }

Once subscribed, the WebSocket server will periodically send you updates about the location. This ensures you always have the latest information at regular intervals. For performance reasons interval below 1000ms will be executed every 1000ms. If you subscribe without any given interval, the default value of 1000ms will be used.

Last modified: 16 January 2025