0.0.2-1 • Published 4 years ago

@vnerve/neuronwire v0.0.2-1

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
4 years ago

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.1-5/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
0.0.2-1

4 years ago

0.0.2

4 years ago

0.0.1-9

4 years ago

0.0.1-8

4 years ago

0.0.1-7

4 years ago

0.0.1-6

4 years ago

0.0.1-5

4 years ago

0.0.1-4

4 years ago

0.0.1-3

4 years ago

0.0.1-2

4 years ago

0.0.1

4 years ago