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

hub.js

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hub.js

Seamless realtime communcation

  • 0.0.11-7d8a170431bac9b23de7c7c8468348ff668d61d0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86
decreased by-57.64%
Maintainers
1
Weekly downloads
 
Created
Source

hub.js

Build Status js-standard-style npm version Coverage Status

Seamless realtime communcation

const hub = require('hub.js')
// creates a hub as a server and as a client (url and port)
const node = hub({
  url: 'ws://someurl.com',
  port: 80 // some port to listen to
})

node.subscribe({
  $any: { title: true }
}, (target, type) => {
  console.log('update!', target, type)
})

Keywords

FAQs

Package last updated on 08 Feb 2017

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