Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/webtorrent/webtorrent
/ functions
Functions
252 in github.com/webtorrent/webtorrent
⨍
Functions
252
◇
Types & classes
26
↓ 2 callers
Method
_updateWireWrapper
()
lib/torrent.js:1588
↓ 2 callers
Method
_verifyPieces
* Verifies the pieces of the torrent, if a startup bitfield is provided it will be used for verification * @param {callbackWithError} cb * @priv
lib/torrent.js:827
↓ 2 callers
Function
addWire
()
test/rarity-map.js:109
↓ 2 callers
Function
assertSelectionsEquals
* @param {import('tape').Test} t * @param {import('../../lib/selections.js').Selections} selections * @param {[number,number][]} expected
test/node/client-deselect.js:151
↓ 2 callers
Function
close
()
test/node/server.js:26
↓ 2 callers
Function
createClient
(opts = {})
test/node/encryption.js:9
↓ 2 callers
Function
encodeRFC5987
(str)
lib/server.js:441
↓ 2 callers
Method
get
* Returns the torrent with the given `torrentId`. Convenience method. Easier than * searching through the `client.torrents` array. Returns `null` i
index.js:237
↓ 2 callers
Method
isOriginAllowed
(req)
lib/server.js:41
↓ 2 callers
Function
maybeDone
()
test/node/download-tracker-torrent.js:86
↓ 2 callers
Function
maybeDone
()
test/node/download-webseed-torrent.js:46
↓ 2 callers
Method
next
()
lib/file-iterator.js:40
↓ 2 callers
Method
onRequest
(req, cb)
lib/server.js:172
↓ 2 callers
Function
removeWire
(index)
test/rarity-map.js:116
↓ 2 callers
Method
serveMethodNotAllowed
(res)
lib/server.js:52
↓ 2 callers
Method
startConnectTimeout
()
lib/peer.js:208
↓ 2 callers
Method
uploadSpeed
()
lib/torrent.js:247
↓ 2 callers
Function
validateInitial
()
test/rarity-map.js:88
↓ 1 callers
Method
_destroy
()
lib/file.js:187
↓ 1 callers
Method
_getByHash
(infoHashHash)
index.js:550
↓ 1 callers
Method
_getMetadataFromServer
()
lib/torrent.js:482
↓ 1 callers
Method
_hasAllPieces
()
lib/torrent.js:896
↓ 1 callers
Method
_hasNoPieces
()
lib/torrent.js:903
↓ 1 callers
Method
_hotswap
* Attempts to cancel a slow block request from another wire such that the * given wire may effectively swap out the request for one of its own.
lib/torrent.js:1877
↓ 1 callers
Method
_init
(url)
lib/webconn.js:32
↓ 1 callers
Method
_markUnverified
* Mark one piece as unverified * @param {number} index * @private
lib/torrent.js:884
↓ 1 callers
Method
_mergePriorityAndNotify
* Merges the priority and notify functions of two selection items. * @param {SelectionItem} newItem * @param {SelectionItem} existing
lib/selections.js:69
↓ 1 callers
Method
_onListening
()
index.js:515
↓ 1 callers
Method
_rechoke
* Called periodically to update the choked status of all peers, handling optimistic * unchoking as described in BEP3.
lib/torrent.js:1793
↓ 1 callers
Method
_updateWire
* Attempts to update a peer's requests * @param {import('bittorrent-protocol').default} wire
lib/torrent.js:1602
↓ 1 callers
Method
_validAddr
* Returns `true` if string is valid IPv4/6 address. * @param {string} addr * @return {boolean}
lib/torrent.js:2183
↓ 1 callers
Method
_verifyPiece
* Verify a single piece using hashing * @param index * @param {verifyPieceCallback} cb * @private
lib/torrent.js:720
↓ 1 callers
Method
_verifyPiecesUsingBitfield
* Verify pieces using bitfield, in case of in-congruences it will re-verify the file using hashing * @param {callbackWithError} cb * @private
lib/torrent.js:745
↓ 1 callers
Method
addWebSeed
(urlOrConn)
lib/torrent.js:1123
↓ 1 callers
Function
checkState
(worker, controller)
test/browser/server.js:23
↓ 1 callers
Method
concatenate
(newItem)
lib/selections.js:85
↓ 1 callers
Method
critical
(start, end)
lib/torrent.js:1278
↓ 1 callers
Method
getFileModtimes
(cb)
lib/torrent.js:693
↓ 1 callers
Method
httpRequest
(pieceIndex, offset, length, cb)
lib/webconn.js:82
↓ 1 callers
Function
isFileList
* Check if `obj` is a W3C `FileList` object * @param {*} obj * @return {boolean}
index.js:582
↓ 1 callers
Function
isReadable
* Check if `obj` is a node Readable stream * @param {*} obj * @return {boolean}
index.js:573
↓ 1 callers
Method
onHandshake
* Called when handshake is received from remote peer. * @param {string} infoHash * @param {string} peerId
lib/peer.js:165
↓ 1 callers
Function
randomInt
* Returns a random integer in [0,high)
lib/torrent.js:2228
↓ 1 callers
Method
serveFile
(file, req, res)
lib/server.js:110
↓ 1 callers
Method
serveIndexPage
(res, torrents, pathname)
lib/server.js:18
↓ 1 callers
Method
serveOptionsRequest
(req, res)
lib/server.js:99
↓ 1 callers
Method
serveTorrentPage
(torrent, res, pathname)
lib/server.js:75
↓ 1 callers
Method
setThrottlePipes
()
lib/peer.js:135
↓ 1 callers
Method
startHandshakeTimeout
()
lib/peer.js:223
↓ 1 callers
Method
swap
(i, j)
lib/selections.js:134
↓ 1 callers
Method
throttleDownload
* Set global download throttle rate. * @param {Number} rate (must be bigger or equal than zero, or -1 to disable throttling)
index.js:439
↓ 1 callers
Method
throttleUpload
* Set global upload throttle rate * @param {Number} rate (must be bigger or equal than zero, or -1 to disable throttling)
index.js:452
Method
[Symbol.asyncIterator]
()
lib/file-iterator.js:36
Method
[Symbol.asyncIterator]
(opts = {})
lib/file.js:97
Method
[Symbol.iterator]
@returns {Generator<SelectionItem & {remove: function}>}
lib/selections.js:145
Method
_numQueued
()
lib/torrent.js:260
Method
_onseed
index.js:343
Method
_peersLength
()
lib/torrent.js:209
Function
_remove
()
test/rarity-map.js:21
Method
_utpServer
()
index.js:546
Method
address
()
lib/server.js:410
Function
binding
(name)
polyfills/process-fast.js:34
Method
blob
(opts)
lib/file.js:147
Function
cancel
()
lib/worker-server.js:10
Function
chdir
(dir)
polyfills/process-fast.js:35
Method
cleanup
()
lib/server.js:369
Method
cleanupPending
()
lib/conn-pool.js:178
Method
clearPipes
()
lib/peer.js:130
Method
close
(cb = () => {})
lib/server.js:320
Method
close
(cb)
lib/server.js:414
Method
constructor
(opts = {})
index.js:49
Method
constructor
* Start downloading a new torrent. * @param {string|ArrayBufferView|Object} torrentId * @param {import('../index.js').default} client * @para
lib/torrent.js:116
Method
constructor
(client)
lib/conn-pool.js:20
Method
constructor
(torrent)
lib/rarity-map.js:6
Method
constructor
(file, { start, end })
lib/file-iterator.js:16
Method
constructor
(id, type, secure = 0)
lib/peer.js:37
Method
constructor
(client, opts = {})
lib/server.js:11
Method
constructor
(client, opts)
lib/server.js:264
Method
constructor
(client, opts)
lib/server.js:337
Method
constructor
(url, torrent)
lib/webconn.js:22
Method
constructor
(torrent, file)
lib/file.js:8
Method
constructor
(wire)
test/node/extensions.js:10
Function
cwd
()
polyfills/process-fast.js:32
Method
deselect
(start, end)
lib/torrent.js:1274
Method
destroy
()
lib/rarity-map.js:60
Method
destroy
(cb)
lib/server.js:328
Method
destroy
(cb)
lib/server.js:419
Method
destroy
()
lib/webconn.js:149
Method
downloadSpeed
()
index.js:212
Method
downloaded
()
lib/torrent.js:219
Method
downloaded
()
lib/file.js:39
Method
genPieceFilterFunc
(start, end, tried, rank)
lib/torrent.js:1655
Function
getDownloadPath
(infix, infoHash)
test/common.js:5
Method
getMetadataFromURL
(url, cb)
lib/torrent.js:497
Method
getPieceDownloaded
(pieceIndex)
lib/file.js:49
Method
getPieceLength
(pieceIndex)
lib/file.js:45
Method
handleRequest
()
lib/server.js:208
Function
inflateSync
(buffer)
polyfills/inflate-sync-web.js:3
Function
isIntersecting
(newItem, existing)
lib/selections.js:209
Method
length
()
lib/selections.js:125
← previous
next →
101–200 of 252, ranked by callers