mobility-toolbox-js 1.3.13-beta.1 → 1.3.13-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/tralis/TralisAPI.js +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/api/tralis/TralisAPI.js
CHANGED
|
@@ -395,7 +395,7 @@ class TralisAPI {
|
|
|
395
395
|
* @param {function(response: { content: Vehicle })} onMessage Function called on each message of the channel.
|
|
396
396
|
*/
|
|
397
397
|
subscribeDeletedVehicles(mode, onMessage) {
|
|
398
|
-
this.unsubscribeDeletedVehicles();
|
|
398
|
+
this.unsubscribeDeletedVehicles(onMessage);
|
|
399
399
|
this.subscribe(
|
|
400
400
|
`deleted_vehicles${getModeSuffix(mode, TralisModes)}`,
|
|
401
401
|
onMessage,
|