linx-simulator2/node_modules/mumble-streams/README.md
2019-09-18 11:11:16 +03:00

699 B

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