blockfrost / blockfrost-websocket-link

WebSocket link for Blockfrost.io API.
Apache License 2.0
8 stars 3 forks source link

Prune list of stale subscriptions #227

Closed slowbackspace closed 10 months ago

slowbackspace commented 10 months ago

We keep track of subscribed clients by storing them in an array. When client disconnects its subscription should be removed from the array. The problem is that not all types of disconnection are caught by "close" event resulting in array of clients subscriptions getting larger and larger.

This PR synchronizes the subscription lists with the actual list of connection websocket clients.