7 Commits

Author SHA1 Message Date
Jacob Heun
31d1b2369a
fix: use toB58String everywhere to be consistent (#537)
* chore: update deps

* fix: consistently use b58 peerid string

The migration to base32 will happen at a later date
2020-01-22 11:47:30 +01:00
Jacob Heun
4a871bbf8b
feat: coalescing dial support (#518)
* docs: fix spelling in api

* fix: dont create peerstore twice

* feat: add support for dial coalescing

* doc(fix): add setPeerValue to API TOC

* docs: add more jsdocs to dialer

* chore: remove old comment

* fix: ensure connections are closed

* fix: registrar.getConnections returns first open conn

* fix: directly set the closed status

* chore: remove unneeded log

* refactor: peerStore.put takes an options object
2019-12-15 17:33:16 +01:00
Jacob Heun
f540112835
refactor: stats (#501)
* docs: add initial notes on stats

* feat: initial refactor of stats to metrics

* feat: add support for placeholder metrics

This is helpful for tracking metrics prior to knowing the remote peers id

* fix: add metrics tests and fix issues

* fix: always clear the dial timeout timer

* docs: add metrics to api doc

* chore: apply suggestions from code review

Co-Authored-By: Vasco Santos <vasco.santos@moxy.studio>

* docs: update metrics docs

* fix: call metrics.onDisconnect

* docs(config): add example headers so they appear in the TOC

* docs(config): add metrics configuration

* docs(relay): fix relay configuration docs
2019-12-12 10:29:10 +01:00
Jacob Heun
7c3371bf17
fix: clean up pending dials abort per feedback 2019-12-12 10:29:08 +01:00
Jacob Heun
754fbc2d0b
feat: abort all pending dials on stop 2019-12-12 10:29:07 +01:00
Jacob Heun
53ce404260
chore: update per feedback 2019-12-12 10:29:06 +01:00
Jacob Heun
43a3b85f1a
refactor: cleanup and reorganize 2019-12-12 10:29:06 +01:00