electric-sql / electric-sql/pglite

[BUG]: Missing liveSse from ShapeStreamOptions in pglite-sync

Open
#861 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
16k
Forks
442
Avg merge
20h 19m
Merged PRs (30d)
7

Description

**Describe the bug**
ElectricSQL docs states the key "liveSse" should be used to set connection to the Sync engine to run over SSE. This param is missing from the pglite-sync package, only the "experimentalLiveSse" option is there, but that one is buggy.

**To Reproduce** - include code sample(s)
0: install latest pglite-sync: "@electric-sql/pglite-sync": "^0.4.0",
1: create a sync like this:
```
const offersShape = db.electric.syncShapeToTable({
shape: {
url: url,
//liveSse should be here, but its not
},
table: 'table',
shapeKey: 'tableShapeKey',
primaryKey: ['id'],
```
2: observe the missing parameter

**Details**
- PGlite version: ^0.3.11
- pglite-sync version: ^0.4.0

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.