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(...).
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(...).