Socket
Socket
Sign inDemoInstall

resolve-subscribe-socket.io

Package Overview
Dependencies
32
Maintainers
3
Versions
140
Alerts
File Explorer

Advanced tools

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
2
Maintainers
3
Install size
2.21 MB
Created
Weekly downloads
 

Readme

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

Last updated on 18 Aug 2020

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