Socket
Socket
Sign inDemoInstall

@6river/loopback2-component-pubsub

Package Overview
Dependencies
152
Maintainers
5
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @6river/loopback2-component-pubsub

Google Pub/Sub loopback component


Version published
Weekly downloads
17
Maintainers
5
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 25 Feb 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc