Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@6river/loopback2-component-pubsub

Package Overview
Dependencies
Maintainers
5
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@6river/loopback2-component-pubsub

Google Pub/Sub loopback component

latest
Source
npmnpm
Version
3.1.3
Version published
Maintainers
5
Created
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

loopback

FAQs

Package last updated on 25 Feb 2023

Did you know?

Socket

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