feat: Implement TeamSpeak 3 client with connection management, event handling, and audio support.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user