Skip to content

move port option to opts variable in new Client() #115

@feross

Description

@feross

port doesn't apply for a WebTorrent (ws) tracker.

/**
 * BitTorrent tracker client.
 *
 * Find torrent peers, to help a torrent client participate in a torrent swarm.
 *
 * @param {string|Buffer} peerId         peer id
 * @param {Number} port                  torrent client listening port
 * @param {Object} torrent               parsed torrent
 * @param {Object} opts                  options object
 * @param {Number} opts.rtcConfig        RTCPeerConnection configuration object
 * @param {Number} opts.wrtc             custom webrtc implementation
 * @param {Object} opts.getAnnounceOpts  callback to provide data to tracker
 */
function Client (peerId, port, torrent, opts) {

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions