linx-simulator2/node_modules/mumble-streams
2019-11-22 09:43:37 +00:00
..
lib Simulator first commit 2019-09-18 11:11:16 +03:00
index.js Simulator first commit 2019-09-18 11:11:16 +03:00
package.json Added custom log name 2019-11-22 09:43:37 +00:00
README.md Simulator first commit 2019-09-18 11:11:16 +03:00

mumble-streams

This module provides node-style streams for en- and decoding the Mumble protocol.

Usage

See here for a working example.

import mumbleStreams from 'mumble-streams'

var encoder = new mumbleStreams.data.Encoder()
var decoder = new mumbleStreams.data.Decoder()

encoder.pipe(decoder).on('data', data => {
  console.log(data)
});

encoder.write({
  name: 'Version',
  payload: {
    version: mumbleStreams.version.toUInt8(),                               
    release: 'mumble-streams',       
    os: 'node.js',                                
    os_version: ''
  }
})

License

ISC