-
Notifications
You must be signed in to change notification settings - Fork 401
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
Conversation
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.
There was a problem hiding this 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!, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@pubnub-release-bot release |
🚀 Release successfully completed 🚀 |
feat(shared-worker): migrate to shared worker
Use
SharedWorker
instead ofService 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.