Updates
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
require('bare-process/global')
|
||||
const { HyperP2PGravityWell } = require('../index.js')
|
||||
async function main () {
|
||||
const g = new HyperP2PGravityWell()
|
||||
g.setWell('sink', 9)
|
||||
g.attract({ hello: 'world' })
|
||||
console.log('drained', g.drain().length)
|
||||
await g.close()
|
||||
}
|
||||
main().catch(console.error)
|
||||
Reference in New Issue
Block a user