New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@vnerve/neuronwire

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vnerve/neuronwire

This is vNerve's JavaScript SDK, NeuronWire.

latest
Source
npmnpm
Version
0.0.2-1
Version published
Maintainers
1
Created
Source

vNerve NeuronWire JavaScript SDK

Under Heavy Development.

Build Instruction

  • git submodule update --init --recursive
  • npm install
  • npm run build:protobuf
  • npm run build

TODO:

  • Fix Info Type
  • Write Example
  • Complete API documentation
  • Publish to npm
  • Add Test

Example

An SDK example can be found at dist/example/demo.html after build the project.

Place script tag before the end of body

<script src="https://cdn.jsdelivr.net/npm/@vnerve/neuronwire@0.0.2-1/dist/NeuronWire.js"></script>

Sample Code:

// Create Connector
const connector = new NeuronWire.ClientConnector.StompClientConnector({presetServer:0})
connector.activate() // Connect

// Register Subscriber
const subscriber = new NeuronWire.Exchange.Room.StompRoomExchange(connector)
const roomSubID = subscriber.subscribe('21908196','*',(msg)=>{
    console.log(JSON.stringify(msg)) // <- Get your decoded message here
})

subscriber.unsubscribe(roomSubID) // unsubscribe

Keywords

vNerve

FAQs

Package last updated on 16 Jul 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