Skip to content

Node.js Mumble protocol client library - websocket transport protocol

Notifications You must be signed in to change notification settings

Johni0702/mumble-client-websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
})

Promise:

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

About

Node.js Mumble protocol client library - websocket transport protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published