Replies: 1 comment
-
That sounds like a good idea. I can't see any reason why deleting unknown ADS notifications received for that port could cause issues. They just use resources. Perhaps the public async unsubscribe(subscription: ActiveSubscription | number): Promise<void> {
//...
} We could automatically delete all unknown notifications, and write a WARNING: to the console. It could also be a setting such as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ads-client
detects incoming notifications for unknown handles, which indicates that previously an ADS subscription was not properly unsubscribed.In our application code, we detect this by error message
/Notification received with unknown handle \((\d+)\)/
and unsubscribe the handle with a raw ADS command:This works, but could be more convenient, with one or more of these changes:
StaleSubscriptionHandleError
with ahandle: number
property.unsubscribeRaw(handle: number)
method.Beta Was this translation helpful? Give feedback.
All reactions