mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-07-02 02:31:47 +00:00
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await. The API has also been updated according to the latest `interface-transport` version, https://github.com/libp2p/interface-transport/tree/v0.6.0#api.
9 lines
203 B
JavaScript
9 lines
203 B
JavaScript
'use strict'
|
|
|
|
// p2p multi-address code
|
|
exports.CODE_P2P = 421
|
|
exports.CODE_CIRCUIT = 290
|
|
|
|
// Time to wait for a connection to close gracefully before destroying it manually
|
|
exports.CLOSE_TIMEOUT = 2000
|