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.
misc: added client id to every log
misc: migrated from pnp to node-modules as we had trouble deploying master branch with pnp
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.