/mumble-streams

Mumble protocol as Node.js-style streams

Primary LanguageJavaScript

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