Skip to content

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

@GyulaSipos

Description

@GyulaSipos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions