Unity-Technologies / go-ts3

A golang TeamSpeak 3 ServerQuery client
BSD 2-Clause "Simplified" License
47 stars 21 forks source link

Allow ClientQuery connections #24

Closed LouisChrist closed 5 years ago

LouisChrist commented 5 years ago

ServerQuery and ClientQuery are pretty similar. The only differences are the commands and the header send on a new connection. ServerQuery sends "TS3" and ClientQuery "TS3 Client". Custom commands work create, but the connection header was hardcoded.

I moved connectHeader into the Client struct and added an option to set it in NewClient(...).

stevenh commented 5 years ago

Thanks for the PR!