Nondeterministic Palindrome Machine

    @6river/loopback2-component-pubsub
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.1 • Public • Published

    loopback2-component-pubsub

    Loopback v2.x component that injects pubsub client into the global app object.

    The main difference with Loopback /change-stream channels is that this implementation creates only two observers (after save and after delete) per model and then streams the changes to keep-alive registered connections. In contrast Loopback creates two same observers for each connection.

    Install and Setup

    Install the company: npm install --save loopback2-component-pubsub

    Add the following configuration to component-config.json:

    {
      ...
      "loopback2-component-pubsub": {
        "projectId": "my-project",
      		...
      },
      ...
    }

    Usage

    Access pubsub client using app.pubsub field.

    Install

    npm i @6river/loopback2-component-pubsub

    DownloadsWeekly Downloads

    86

    Version

    3.0.1

    License

    ISC

    Unpacked Size

    263 kB

    Total Files

    26

    Last publish

    Collaborators

    • 6river-machine
    • kolach
    • jjhughes57
    • aaron.france