0.12.2 • Published 5 months ago

@tf2pickup-org/mumble-client v0.12.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Installation

$ npm i @tf2pickup-org/mumble-client

Examples

Connect to a mumble server

import { Client } from '@tf2pickup-org/mumble-client';

const client = new Client({
  host: 'mumble://example.com',
  port: 64738,
  username: 'me',
});
await client.connect();

if (client.isConnected) {
  console.log(client.welcomeText);
  console.log(`logged in as ${client.self.name}`);
}

List all channels

import { type Channel } from '@tf2pickup-org/mumble-client';

function printChannel(channel: Channel, level = 0) {
  if (channel.name) {
    console.log(channel.name.padStart(channel.name.length + level));
  }

  for (const subChannel of channel.subChannels) {
    printChannel(subChannel, level + 1);
  }
}

printChannel(client.channels.root);
0.12.1

5 months ago

0.12.2

5 months ago

0.12.0

5 months ago

0.11.2

5 months ago

0.11.1

5 months ago

0.10.0

6 months ago

0.9.0

6 months ago

0.8.1

7 months ago

0.8.2

7 months ago

0.8.0

8 months ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.3

2 years ago

0.7.0

3 years ago

0.6.0

3 years ago