Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Conversation

@filipecabaco
Copy link
Member

What kind of change does this PR introduce?

Added capacity to use Worker for Healthchecks. We also allow users to override the worker URL so they are able to modify it as they see fit

Base automatically changed from realtime/improve-test-framework to master August 27, 2024 15:58
@filipecabaco filipecabaco changed the base branch from master to next August 27, 2024 15:58
@filipecabaco filipecabaco force-pushed the feat/add-worker-logic branch from 7cf5c0d to 0fd9786 Compare August 27, 2024 16:00
Added capacity to use Worker for Healthchecks. We also allow users to override the worker URL so they are able to modify it as they see fit
@filipecabaco filipecabaco force-pushed the feat/add-worker-logic branch from 1a50028 to 27373cc Compare August 29, 2024 10:16
@filipecabaco filipecabaco marked this pull request as ready for review August 29, 2024 10:17
Comment on lines +127 to +128
* @param options.worker Use Web Worker to set a side flow. Defaults to false.
* @param options.workerUrl The URL of the worker script. Defaults to https://realtime.supabase.com/worker.js that includes a heartbeat event call to keep the connection alive.
Copy link
Contributor

Choose a reason for hiding this comment

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

What if we group this 2 params into only one of type worker: string | bool and default it to false?

  1. If worker is a bool, and false, don't use worker
  2. If worker is bool and true, use default worker url
  3. if worker is string, use it as the url, this also means you wan't to use worker flow

Copy link
Member Author

Choose a reason for hiding this comment

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

unsure... personally I kind of like it making it explicit and have options for all has that means "one thing, one behaviour change"

this feels that there are 3 possible behaviours attached to a single argument that would need extra doc reading vs intellisense for example

@filipecabaco filipecabaco merged commit ef4e8d9 into next Sep 3, 2024
@filipecabaco filipecabaco deleted the feat/add-worker-logic branch September 3, 2024 13:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants