This module provides node-style streams for en- and decoding the Mumble protocol.
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: ''
}
})
ISC