3.1.3 • Published 1 year ago

@6river/loopback2-component-pubsub v3.1.3

Weekly downloads
135
License
ISC
Repository
github
Last release
1 year ago

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.

3.1.3

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

2.0.0-main.1

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago