Ts3client.node

adamk33n3r/node-ts3sdk-client: TeamSpeak 3 SDK Client Addon for Node.js (github.com)
I have compiled sdk from this source.
I’m trying to connect to my own server with Nodejs, but I’m getting errors. Can you help me?

2021-01-17 19:23:49.965861|INFO | | |TeamSpeak 3 Client 3.0.4.4 (2018-05-30 11:06:00) SDK
2021-01-17 19:23:49.967863|INFO | | |SystemInformation: Windows 10 (19042) x64 (AMD or Intel) Binary: 64bit
2021-01-17 19:23:49.970867|INFO | | |Using hardware aes
2021-01-17 19:23:49.985880|DEBUG |Direct Sound | |setting timer resolution to 1ms -
2021-01-17 19:23:50.053942|INFO |PreProSpeex |1 |Speex version: speex-1.2beta3
warning: The VAD has been replaced by a hack pending a complete rewrite
2021-01-17 19:23:55.235170|DEBUG |Node.js | |Connect status changed; new status is: 0
2021-01-17 19:23:55.239175|ERROR |Node.js | |Failed to connect: failed connection initialization

There can be a lot of reasons (invalid password, server full, client is banned, etc). Please register a callback for the onServerErrorEvent to get more details on what went wrong.

Something like this should work:

ts3client.on('onServerErrorEvent', function(schID, errorMessage, errorCode, returnCode, extraMessage)
{
  // your code
});
2 Likes

It happens because I connect to a normal server, it can only connect to SDK servers.

This… :upside_down_face:

2 Likes