github.com/anacrolix/torrent@v1.61.0/webtorrent/peer-conn-stats_js.go (about)

     1  //go:build js && wasm
     2  // +build js,wasm
     3  
     4  package webtorrent
     5  
     6  import (
     7  	"github.com/pion/webrtc/v4"
     8  )
     9  
    10  // webrtc.PeerConnection.GetStats() is not currently supported for WASM. Return empty stats.
    11  func GetPeerConnStats(pc *wrappedPeerConnection) (stats webrtc.StatsReport) {
    12  	return
    13  }