github.com/anacrolix/torrent@v1.61.0/webtorrent/peer-conn-stats.go (about) 1 //go:build !js 2 // +build !js 3 4 package webtorrent 5 6 import ( 7 "github.com/pion/webrtc/v4" 8 ) 9 10 func GetPeerConnStats(pc *wrappedPeerConnection) (stats webrtc.StatsReport) { 11 if pc != nil { 12 stats = pc.GetStats() 13 } 14 return 15 }