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
A callback to indicate that the shape caught up to the main Postgres.
102
102
103
-
-`unsubscribeAllUpToDateSubscribers()`<br>
104
-
Unsubscribe all `subscribeOnceToUpToDate` listeners.
105
-
106
103
-`subscribeMustRefresh(cb: () => void)`<br>
107
104
A callback that is called when the stream emits a `must-refresh` message.
108
105
@@ -115,7 +112,10 @@ The returned `shape` object from the `syncShapeToTable` call has the following m
115
112
### `ShapeStreamOptions`
116
113
117
114
-`url: string`<br>
118
-
The full URL to where the Shape is hosted. This can either be the Electric server directly, or a proxy. E.g. for a local Electric instance, you might set `http://localhost:3000/v1/shape/foo`
115
+
The full URL to where the Shape is hosted. This can either be the Electric server directly, or a proxy. E.g. for a local Electric instance, you might set `http://localhost:3000/v1/shape`
116
+
117
+
-`table: string`<br>
118
+
The name of the table in the remote database to sync from
0 commit comments