Never-ending Pumpkin Mulch

    mumble-client-websocket

    1.0.0 • Public • Published

    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

    Keywords

    none

    Install

    npm i mumble-client-websocket

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • johni0702