The client lives in the main process
WebTorrent runs in Electron's main process, not the renderer. That's deliberate: the main process can open raw TCP sockets and speak DHT, so the app reaches the ordinary BitTorrent swarm. A renderer-hosted client would only ever see WebRTC peers.