stats: exposed and documented

This commit is contained in:
Pedro Teixeira
2018-02-23 13:19:39 +00:00
committed by David Dias
parent 642b8ad751
commit 2c04a71007
4 changed files with 134 additions and 1 deletions

View File

@ -34,7 +34,8 @@ class Node extends EventEmitter {
this._isStarted = false
this.switch = new Switch(this.peerInfo, this.peerBook)
this.switch = new Switch(this.peerInfo, this.peerBook, _options.switch)
this.stats = this.switch.stats
// Attach stream multiplexers
if (this.modules.connection && this.modules.connection.muxer) {