This commit is contained in:
WolverinDEV
2019-07-08 11:07:57 +02:00
parent 225c4d3252
commit 3e59e21a0e
4 changed files with 23 additions and 9 deletions
+7 -2
View File
@@ -103,8 +103,9 @@ const do_connect = () => {
connection.connect({
timeout: 5000,
remote_port: 9987,
//remote_host: "localhost",
remote_host: "ts.teaspeak.de",
//remote_host: "188.40.240.20", /* twerion */
remote_host: "localhost",
//remote_host: "ts.teaspeak.de",
//remote_host: "51.68.181.92",
//remote_host: "94.130.236.135",
//remote_host: "54.36.232.11", /* the beast */
@@ -159,6 +160,10 @@ const do_connect = () => {
connection.callback_voice_data = (buffer, client_id, codec_id, flag_head, packet_id) => {
connection.send_voice_data(buffer, codec_id, flag_head);
}
connection.callback_command = (command, arguments1, switches) => {
console.log("Command: %s", command);
}
};
do_connect();