6/14/2023 0 Comments Webtorrent onlineThe WebTorrent script is also hosted on fast, reliable CDN infrastructure (Cloudflare and Object, so it can be used with just a script tag: ( ) which exposes WebTorrent on the window WebTorrent is also available as a standalone script Import WebTorrent from 'webtorrent/dist/' and skip the webpack configuration. Or, you can just use the pre-built version via However, webpack requires extra configuration which you can find in the webpack bundle config used by webtorrent. WebTorrent also works with webpack, another moduleīundler. You use node-style require() to organize your browser code and load modules installed by npm (as seen in the previous examples). WebTorrent works great with browserify, an npm package that lets There are more examples in docs/get-started.md. When user drops files on the browser, create a new torrent and start seeding it!Ĭonsole.log('Client is seeding:', Hash) Seeding a file is simple, too: import dragDrop from 'drag-drop' Standards (no plugins, just HTML5 and WebRTC)! It's easy to get started! In the browser Downloading a file is simple: import WebTorrent from 'webtorrent'Ĭonsole.log('Client is downloading:', Hash) WebTorrent is the first BitTorrent client that works in the browser, using open web Lots of folks! WebTorrent API Documentation With development or to hang out with some mad science hackers :) Join us in Gitter or on freenode at #webtorrent to help.To install a WebTorrent desktop application for Mac, Windows, or Linux, see To install a webtorrent command line program, run: npm install webtorrent-cli -g To install WebTorrent for use in node or the browser with import WebTorrent from 'webtorrent', run: npm install webtorrent
0 Comments
Leave a Reply. |