Updates
This commit is contained in:
@@ -3,6 +3,8 @@ const { HyperP2PStatsExporter } = require('../index.js')
|
||||
|
||||
async function main () {
|
||||
const m = new HyperP2PStatsExporter()
|
||||
console.log('[scaffold]', m.getStats())
|
||||
m.register('demo', () => ({ ok: true }))
|
||||
console.log('[stats-exporter]', m.snapshot())
|
||||
await m.close()
|
||||
}
|
||||
main().catch(console.error)
|
||||
|
||||
Reference in New Issue
Block a user