export client rtt in account info
@@ -34,15 +34,18 @@ func (c *actCmd) infoAction(pc *kingpin.ParseContext) error {
id, _ := nc.GetClientID()
ip, _ := nc.GetClientIP()
+ rtt, _ := nc.RTT()
+
fmt.Println("Connection Information:")
fmt.Println()
fmt.Printf(" Client ID: %v\n", id)
fmt.Printf(" Client IP: %v\n", ip)
+ fmt.Printf(" RTT: %v\n", rtt)
fmt.Printf(" Headers Supported: %v\n", nc.HeadersSupported())
+ fmt.Printf(" Maximum Payload: %v\n", humanize.IBytes(uint64(nc.MaxPayload())))
fmt.Printf(" Connected URL: %v\n", nc.ConnectedUrl())
fmt.Printf(" Connected Address: %v\n", nc.ConnectedAddr())
fmt.Printf(" Connected Server Name: %v\n", nc.ConnectedServerName())
- fmt.Printf(" Maximum Payload: %v\n", humanize.IBytes(uint64(nc.MaxPayload())))
fmt.Println()
