![]() In node, enable debug logs by setting the DEBUG environment variable to the name of the Metadata for magnet uris (protocol extension) These are the main modules that make up WebTorrent: module All the nice, reusable components sublimate away onto github and npm where everybody can collaborate to advance the commons." - substack from "how I write modules" "When applications are done well, they are just the really application-specific, brackish residue that can't be so easily abstracted away. Most of the active development is happening inside of small npm packages which are used by WebTorrent. Oct 2013 - RealtimeConf - WebRTC Black Magic (first mention of idea for WebTorrent).May 2014 - JS.LA - How I Built a BitTorrent Client in the Browser (progress update node client working).Apr 2014 - CraftConf - Bringing BitTorrent to the Web.Sep 2014 - NodeConf EU - WebRTC Mad Science (first working WebTorrent demo).Nov 2014 - JSConf Asia - How WebTorrent Works.May 2015 - Data Terra Nemo - WebRTC Everywhere.May 2015 - Data Terra Nemo - WebTorrent: Mother of all demos.May 2016 - SIGNAL Conference - BitTorrent in the Browser.Nov 2016 - NodeConf Argentina - Real world Electron: Building Cross-platform desktop apps with JavaScript.May 2017 - Char.la - WebTorrent and Peerify (Spanish).Sep 2017 - Nordic JS - Get Rich Quick With P2P Crypto Currency.In addition to magnet uris, WebTorrent supports many ways to specify a torrent. 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. Import dragDrop from 'drag-drop' import WebTorrent from 'webtorrent' const client = new WebTorrent ( ) // When user drops files on the browser, create a new torrent and start seeding it! dragDrop ( 'body', files => ) To install WebTorrent for use in node or the browser with import WebTorrent from 'webtorrent', run:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |