Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@6river/loopback2-component-pubsub

Package Overview
Dependencies
Maintainers
4
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

  • 3.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
decreased by-31.58%
Maintainers
4
Weekly downloads
 
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

FAQs

Package last updated on 19 Apr 2022

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc