You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2025. It is now read-only.
@@ -104,6 +111,9 @@ export default class RealtimeClient {
104
111
message: [],
105
112
}
106
113
fetch: Fetch
114
+
worker?: boolean
115
+
workerUrl?: string
116
+
workerRef?: Worker
107
117
108
118
/**
109
119
* Initializes the Socket.
@@ -119,6 +129,8 @@ export default class RealtimeClient {
119
129
* @param options.encode The function to encode outgoing messages. Defaults to JSON: (payload, callback) => callback(JSON.stringify(payload))
120
130
* @param options.decode The function to decode incoming messages. Defaults to Serializer's decode.
121
131
* @param options.reconnectAfterMs he optional function that returns the millsec reconnect interval. Defaults to stepped backoff off.
132
+
* @param options.worker Use Web Worker to set a side flow. Defaults to false.
133
+
* @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.
0 commit comments