Skip to content

Streaming API issues #1509

Open
Open

Description

@cristiand391

There are a few issues related to the Streaming API wrapper in jsforce:
https://github.com/jsforce/jsforce/issues?q=is%3Aopen+is%3Aissue+label%3Aarea%3Astreaming

The faye library we use for the streaming client seems abandoned:
https://www.npmjs.com/package/faye

Instead of working around faye it might be better to find an alternative that allows a better support for the Streaming API and jsforce's features (mostly allow to refresh expired tokens without losing the connection).

Alternatively, would adding support for the Pub/Sub API cover usage of the Streaming API in your project?
https://developer.salesforce.com/docs/platform/pub-sub-api/overview

Activity

  1. pinned this issue on Jun 12, 2024
  2. riekusr commented on Jun 16, 2024

    @riekusr

    I think adding Pub/Sub API support would be the best way forward, there is already a nice implementation of it:
    https://github.com/pozil/pub-sub-api-node-client

  3. pozil commented on Jul 31, 2024

    @pozil

    Chiming in as I'm the author of the Pub/Sub API repo quoted above. I had some discussions with some core jsforce contributors about this and for the sake of transparency, I want to share where we landed. FYI @stomita.

    I'm totally up to include the Pub/Sub API client in jsforce but there's a major blocker: jsforce is intended to remain isomorphic (works in browser and Node.js) whereas my client is Node only.
    I did some investigations to see if I could port my client to support both environments but it's not possible because the gRPC client I use only works on Node (probably because it uses binary streams).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:streaming

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions