mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-29 18:21:23 +00:00
* chore(deps): update connection and multistream * feat: add basic dial support for addresses and peers * test: automatically require all node test files * fix: dont catch and log in the wrong place * test: add direct spec test fix: improve dial error consistency * feat: add dial timeouts and concurrency Queue timeouts will result in aborts of the dials * chore: fix linting * test: verify dialer defaults * feat: add initial upgrader * fix: add more test coverage and fix bugs * feat: libp2p creates the upgrader * feat: hook up handle to the upgrader * feat: hook up the dialer to libp2p test: add node dialer libp2p tests * feat: add connection listeners to upgrader * feat: emit connect and disconnect events * chore: use libp2p-interfaces * fix: address review feedback * fix: correct import * refactor: dedupe connection creation code
24 lines
827 B
JavaScript
24 lines
827 B
JavaScript
'use strict'
|
|
|
|
exports.messages = {
|
|
NOT_STARTED_YET: 'The libp2p node is not started yet',
|
|
DHT_DISABLED: 'DHT is not available'
|
|
}
|
|
|
|
exports.codes = {
|
|
DHT_DISABLED: 'ERR_DHT_DISABLED',
|
|
PUBSUB_NOT_STARTED: 'ERR_PUBSUB_NOT_STARTED',
|
|
ERR_CONNECTION_FAILED: 'ERR_CONNECTION_FAILED',
|
|
ERR_NODE_NOT_STARTED: 'ERR_NODE_NOT_STARTED',
|
|
ERR_NO_VALID_ADDRESSES: 'ERR_NO_VALID_ADDRESSES',
|
|
ERR_DISCOVERED_SELF: 'ERR_DISCOVERED_SELF',
|
|
ERR_DUPLICATE_TRANSPORT: 'ERR_DUPLICATE_TRANSPORT',
|
|
ERR_ENCRYPTION_FAILED: 'ERR_ENCRYPTION_FAILED',
|
|
ERR_INVALID_KEY: 'ERR_INVALID_KEY',
|
|
ERR_MUXER_UNAVAILABLE: 'ERR_MUXER_UNAVAILABLE',
|
|
ERR_TIMEOUT: 'ERR_TIMEOUT',
|
|
ERR_TRANSPORT_UNAVAILABLE: 'ERR_TRANSPORT_UNAVAILABLE',
|
|
ERR_TRANSPORT_DIAL_FAILED: 'ERR_TRANSPORT_DIAL_FAILED',
|
|
ERR_UNSUPPORTED_PROTOCOL: 'ERR_UNSUPPORTED_PROTOCOL'
|
|
}
|