Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to SharedWorker #371

Merged
merged 3 commits into from
May 16, 2024
Merged

Migrate to SharedWorker #371

merged 3 commits into from
May 16, 2024

Conversation

parfeon
Copy link
Contributor

@parfeon parfeon commented May 15, 2024

feat(shared-worker): migrate to shared worker

Use SharedWorker instead of Service Worker for better PubNub client instances feedback.

feat(shared-worker): add worker log verbosity flag

Add configuration option to enable debug log output from the subscription SharedWorker.

refactor: add declarations generation

Create types declaration files.

Use `SharedWorker` instead of `Service Worker` for better PubNub client instances feedback.

feat(shared-worker): add worker log verbosity flag

Add configuration option to enable debug log output from the subscription `SharedWorker`.

refactor: add declarations generation

Create types declaration files.
@parfeon parfeon added status: done This issue is considered resolved. priority: medium This PR should be reviewed after all high priority PRs. type: feature This PR contains new feature. labels May 15, 2024
@parfeon parfeon self-assigned this May 15, 2024
Copy link
Contributor

@mohitpubnub mohitpubnub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

sdkVersion: clientConfiguration.getVersion(),
logVerbosity: clientConfiguration.logVerbosity!,
workerLogVerbosity: platformConfiguration.subscriptionWorkerLogVerbosity!,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming that platformConfiguration.subscriptionWorkerLogVerbosity will always hold non-null value right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mohitpubnub yup, there are defaults applied when final platform-specific configuration created here.

* Event signal shared worker client that worker can be used.
*/
export type SharedWorkerConnected = {
type: 'shared-worker-connected';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@parfeon
Copy link
Contributor Author

parfeon commented May 16, 2024

@pubnub-release-bot release

@parfeon parfeon merged commit 5607747 into master May 16, 2024
6 of 7 checks passed
@parfeon parfeon deleted the feat/use-shared-worker branch May 16, 2024 10:56
@pubnub-release-bot
Copy link
Contributor

🚀 Release successfully completed 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium This PR should be reviewed after all high priority PRs. status: done This issue is considered resolved. type: feature This PR contains new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants