mumble-client-websocket
v1.0.0
Published
Mumble protocol client library - websocket transport protocol
Downloads
16
Readme
mumble-client-websocket
This module provides the websocket transport protocol for the mumble-client module for use in both Nodejs and the browser.
Usage
Node-style callback:
var connect = require('mumble-client-websocket')
connect('wss://example.com:64737', {
username: 'Test',
password: 'Pass123'
}, function (err, client) {
if (err) throw err;
// Connection established
console.log('Welcome message:', client.welcomeMessage)
console.log('Actual username:', client.self.username)
})
var connect = require('mumble-client-websocket')
connect('wss://example.com:64737', {
username: 'Test',
password: 'Pass123'
}).done(function (client) {
// Connection established
console.log('Welcome message:', client.welcomeMessage)
console.log('Actual username:', client.self.username)
}, function(err) {
console.log('Connection failed:', err)
})
License
MIT