ITADN

Usage of new proxy API

#33Openminwidth0px 创建于 2025-01-02
M
minwidth0pxcommented
I noticed the new proxy API in https://github.com/sinclairzx81/smoke/pull/32. I'm wondering if it could be used to simplify https://github.com/minwidth0px/Webrtc-NAT-Traversal-Proxy-Server. However it's been a while since I worked on this project so I'm not sure. I think all one would have to do is embed a `<script>` that has the `Proxy.listen` function and that has some way to deal with signaling - in my case, via free Webtorrent signaling servers. Then the Service Worker can use smoke to fetch resources that use a smoke URL and let regular URLs pass through normally. So all you would need to do to make a page P2P would be to add that script tag to the page. That would make using this project much easier for developers. I don't have time to work on this now but I wanted to bring it up in any case. (feel free to close this issue.)
0 条评论