-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client#getUniqueIdentifier() returns empty String #13
Comments
Thanks for reporting the issue, I'll take a look. |
@Manevolent Perfect! I also looked a bit around in the code and found a few odd block comments, e.g. above listChannels() or listClients() in LocalTeamspeakClientSocket.java. These seem to belong to a diffrent method... |
Unfortunately, it looks like the listClients() call leverages the client/server query call
None of these values are a UUID for a client (like a unique identifier), so I don't think I am able to expose a UUID, even if I wanted to, on this method. Ideally, we'd probably track the clients sent through events and expose that via an API as well, but this is more of a long-term goal. In the mean-time, TS3Listener does adapt for the events that do this, which are: At least ClientJoinEvent does share the UUID, its properties appear to be:
... and so forth |
I'm going to leave this open, because this is a bit of an eye-sore in the code. I'll start a long-term goal to get better client tracking, and add non-blocking methods to retrieve client information in the project. I suspect we'll need to wrap around the client socket with another class that better abstracts accessing the client state in general. |
The |
When iterating over LocalTeamspeakClientSocket#listClients(), Client#getUniqueIdentifier() returns an empty string for every Client.
I did a workaround looking something like this:
LocalTeamspeakClientSocket#getClientInfo(Client#getId()).getUniqueIdentifier()
Example:
The text was updated successfully, but these errors were encountered: