You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a Reference not defined exception at: alpaca-trade-api-js/lib/resources/websockets.js Line 172.
Change remains = Object.keys(this.subscriptionState)
To let remains = Object.keys(this.subscriptionState)
This fixes the exception, however the client still is subscribed to the given keys after calling the unsubscribe method. All this method seems to do is alter the subscription list but it fails to fully unsubscribe from the given keys.
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out. Unsubscription is currently not actually supported by the Alpaca API, only by Polygon. I'll be removing this misleading method in our next release.
There is a Reference not defined exception at: alpaca-trade-api-js/lib/resources/websockets.js Line 172.
Change
remains = Object.keys(this.subscriptionState)
To
let remains = Object.keys(this.subscriptionState)
This fixes the exception, however the client still is subscribed to the given keys after calling the unsubscribe method. All this method seems to do is alter the subscription list but it fails to fully unsubscribe from the given keys.
The text was updated successfully, but these errors were encountered: