Skip to content

RTCDataChannel access and direct access to WebRTC peer contexts #2701

Answered by SilentBot1
catapart asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there,

Is it exposed through the API, or possible at all, to get a reference to the actual WebRTC peer object which webtorrent is using for the P2P connection? If so, would I be able to add data or stream channels that would be forwarded to the client peer?

You can either register a bittorrent-protocol extension which would allow you to exchange arbitrary data between connected WebTorrent peers, or in theory you can access the underlaying simple-peer connection, but may possible cause issues with the wire (though my understanding may be wrong on this part), but as explained below, this would be after the peers have already connected via a signalling server.

I would like to be able t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@catapart
Comment options

Answer selected by catapart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants