subins2000 / p2pt

Simple WebRTC Peer 2 Peer connections using WebTorrent trackers as the signalling server. Use WebTorrent trackers for any kind of WebRTC app ! 🔥 Make WebRTC apps fast & easy ! 🚀⭐
https://WebDrop.Space
MIT License
564 stars 52 forks source link

add a method to disconnect from the webtorrent connection - while keeping the WebRTC connection alive #12

Open therealadityashankar opened 4 years ago

therealadityashankar commented 4 years ago

this is like an added security layer for 1-1 chats

subins2000 commented 4 years ago

This is possible. The way to do it is to add a function that closes the websocket connection to trackers. Send a PR and I'll take a look. Name the function closeTrackers()