Socket
Socket
Sign inDemoInstall

resolve-subscribe-socket.io

Package Overview
Dependencies
Maintainers
3
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resolve-subscribe-socket.io

An adapter resolve-redux uses to subscribe to events via Socket.io.


Version published
Weekly downloads
5
increased by150%
Maintainers
3
Weekly downloads
 
Created
Source

resolve-subscribe-socket.io

npm version

This package is a resolve-redux adapter used to subscribe to events via Socket.io.

Client Side
import createClientAdapter from 'resolve-subscribe-socket.io/create_client_adapter';

(async () => {
  const adapter = createClientAdapter({ origin, rootPath, url, appId, onEvent })
  
  await adapter.init()
})() 
Server Side
import createServerAdapter from 'resolve-subscribe-socket.io/create_server_adapter';

(async () => {
  const adapter = createServerAdapter({ server, getRootBasedUrl, pubsubManager, appId })
  
  await adapter.init()
})() 

Analytics

Keywords

FAQs

Package last updated on 25 Jun 2020

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