Fix module paths

This commit is contained in:
Kagami Hiiragi 2015-02-14 13:53:24 +03:00
parent 9ca411ec22
commit 508c92009d
5 changed files with 13 additions and 13 deletions

View File

@ -129,11 +129,11 @@ var verackmsg = structs.message.encode("verack");
console.log(structs.message.decode(verackmsg).command); // verack console.log(structs.message.decode(verackmsg).command); // verack
``` ```
### Network ### Networking
```js ```js
var messages = require("bitmessage").messages; var messages = require("bitmessage").messages;
var TcpTransport = require("bitmessage/net/tcp"); var TcpTransport = require("bitmessage/lib/net/tcp");
var tcp = new TcpTransport({ var tcp = new TcpTransport({
dnsSeeds: [["bootstrap8444.bitmessage.org", 8444]], dnsSeeds: [["bootstrap8444.bitmessage.org", 8444]],

View File

@ -3,7 +3,7 @@
* **NOTE**: `Address` is exported as a module. * **NOTE**: `Address` is exported as a module.
* @example * @example
* var Address = require("bitmessage").Address; * var Address = require("bitmessage").Address;
* // Or: var Address = require("bitmessage/address"); * // Or: var Address = require("bitmessage/lib/address");
* *
* // Generate a new random Bitmessage identity. * // Generate a new random Bitmessage identity.
* var addr1 = Address.fromRandom(); * var addr1 = Address.fromRandom();

View File

@ -3,8 +3,8 @@
* implementing new transports. End-users should import some transport * implementing new transports. End-users should import some transport
* instead in order to connect/accept connections to/from other nodes. * instead in order to connect/accept connections to/from other nodes.
* **NOTE**: `BaseTransport` is exported as a module. * **NOTE**: `BaseTransport` is exported as a module.
* @example var BaseTransport = require("bitmessage/net/base"); * @example var BaseTransport = require("bitmessage/lib/net/base");
* @module bitmessage/net/base * @module bitmessage/lib/net/base
*/ */
// TODO(Kagami): Write some sort of tutorial. // TODO(Kagami): Write some sort of tutorial.

View File

@ -2,10 +2,10 @@
* TCP transport compatible with PyBitmessage. Available only for Node * TCP transport compatible with PyBitmessage. Available only for Node
* platform. * platform.
* **NOTE**: `TcpTransport` is exported as a module. * **NOTE**: `TcpTransport` is exported as a module.
* @module bitmessage/net/tcp * @module bitmessage/lib/net/tcp
* @example * @example
* var messages = require("bitmessage").messages; * var messages = require("bitmessage").messages;
* var TcpTransport = require("bitmessage/net/tcp"); * var TcpTransport = require("bitmessage/lib/net/tcp");
* *
* var tcp = new TcpTransport({ * var tcp = new TcpTransport({
* dnsSeeds: [["bootstrap8444.bitmessage.org", 8444]], * dnsSeeds: [["bootstrap8444.bitmessage.org", 8444]],
@ -48,8 +48,8 @@ var getmsg = BaseTransport._getmsg;
var unmap = BaseTransport._unmap; var unmap = BaseTransport._unmap;
/** /**
* TCP transport class. Implements * TCP transport class. Implements [base transport interface]{@link
* [base transport interface]{@link module:bitmessage/net/base.BaseTransport}. * module:bitmessage/lib/net/base.BaseTransport}.
* @param {Object=} opts - Transport options * @param {Object=} opts - Transport options
* @param {Array} opts.seeds - Bootstrap nodes (none by default) * @param {Array} opts.seeds - Bootstrap nodes (none by default)
* @param {Array} opts.dnsSeeds - Bootstrap DNS nodes (none by default) * @param {Array} opts.dnsSeeds - Bootstrap DNS nodes (none by default)

View File

@ -3,8 +3,8 @@
* so we use separate WebSocket server to proxy messages into TCP data * so we use separate WebSocket server to proxy messages into TCP data
* packets. Available for both Node.js and Browser platforms. * packets. Available for both Node.js and Browser platforms.
* **NOTE**: `WsTransport` is exported as a module. * **NOTE**: `WsTransport` is exported as a module.
* @example var WsTransport = require("bitmessage/net/ws"); * @example var WsTransport = require("bitmessage/lib/net/ws");
* @module bitmessage/net/ws * @module bitmessage/lib/net/ws
*/ */
"use strict"; "use strict";
@ -23,8 +23,8 @@ var getmsg = BaseTransport._getmsg;
var unmap = BaseTransport._unmap; var unmap = BaseTransport._unmap;
/** /**
* WebSocket transport class. Implements * WebSocket transport class. Implements [base transport
* [base transport interface]{@link module:bitmessage/net/base.BaseTransport}. * interface]{@link module:bitmessage/lib/net/base.BaseTransport}.
* @param {Object=} opts - Transport options * @param {Object=} opts - Transport options
* @param {Array} opts.seeds - Bootstrap nodes (none by default) * @param {Array} opts.seeds - Bootstrap nodes (none by default)
* @param {Object} opts.services - * @param {Object} opts.services -