New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

drovoo-app-socket-connection-library

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drovoo-app-socket-connection-library

drovoo-app-socket-connection-libraryDrovoo App, Socket Connection Library

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

drovoo-app-socket-connection-library

drovoo-app-socket-connection-libraryDrovoo App, Socket Connection Library

NPM JavaScript Style Guide

Install

npm install --save drovoo-app-socket-connection-library

Usage

import React, { Component } from 'react'

import MyComponent from 'drovoo-app-socket-connection-library'
import 'drovoo-app-socket-connection-library/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}

License

MIT © corupta

To-Do Notes

  • subscribe/notify for state
  • private _state, private _setState, private _notify in socket, public subscribe
  • useSocket to get socket, useSocketState (via subscribe) to get state
  • withSocket(mapStateToProps, mapSocketToProps)(Component)
  • autoConnect if token is present on Provider
  • setToken when token on Provider changes
  • setToken externally via public setToken
  • when token => undefined, disconnect
  • when token => xxx, connect

FAQs

Package last updated on 23 Oct 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