mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Add metric for RTT of WebSocket ping messages.
This commit is contained in:
parent
40ff197bd0
commit
71fda2f258
3 changed files with 10 additions and 0 deletions
|
|
@ -353,6 +353,7 @@ func (c *Client) ReadPump() {
|
|||
log.Printf("Client from %s has RTT of %d ms (%s)", addr, rtt_ms, rtt)
|
||||
}
|
||||
}
|
||||
statsClientRTT.Observe(float64(rtt.Milliseconds()))
|
||||
c.getHandler().OnRTTReceived(c, rtt)
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue