pubnub / javascript

PubNub JavaScript SDK docs https://www.pubnub.com/docs/sdks/javascript
Other
553 stars 401 forks source link

Fix subscribe request aggregation in `SharedWorker`. #403

Closed parfeon closed 1 month ago

parfeon commented 1 month ago

fix(shared-worker): fix presence leave request preparation

Fix issue because of which leave request modified wrong URL path component with actual channels.

fix(shared-worker): fix channels / groups list modification issues

Fix issue because of which removed channels / groups didn't cancel previous subscribe request to re-subscribe with new set of channels / groups.

fix(shared-worker): fix requests aggregation issues

Fix issue because of which suitable active PubNub clients subscription not has been used for aggregation and caused additional connections or wrong set of channels / groups.

refactor(subscription): process messages only for subscribed

Pre-process entries from subscribe response to filter out updates which has been received for channels and groups which are not part of subscription loop (subscription aggregation in shared worker).

refactor(package): add types entry for Node.js integration

Point to the built-in types definition file when package used with npm / yarn.

parfeon commented 1 month ago

@pubnub-release-bot release

pubnub-release-bot commented 1 month ago

🚀 Release successfully completed 🚀