feat: Implement TeamSpeak 3 client with connection management, event handling, and audio support.

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-16 22:11:58 +01:00
parent c55ace0c00
commit f83f525600
7 changed files with 877 additions and 27 deletions

View File

@@ -269,6 +269,14 @@ func (c *Client) IsConnected() bool {
return c.connected
}
// GetPing returns the current RTT in milliseconds
func (c *Client) GetPing() float64 {
if c.internal == nil {
return 0
}
return c.internal.PingRTT
}
// handleInternalEvent processes events from the internal client
func (c *Client) handleInternalEvent(eventType string, data map[string]any) {
switch eventType {