mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-15 03:51:22 +00:00
rm old proto-test.js example
This commit is contained in:
parent
fe026707c9
commit
d67b3dff32
@ -1,24 +0,0 @@
|
|||||||
var protobufs = require('protocol-buffers-stream')
|
|
||||||
var fs = require('fs')
|
|
||||||
var schema = fs.readFileSync(__dirname + '/identify.proto')
|
|
||||||
|
|
||||||
var createProtoStream = protobufs(schema)
|
|
||||||
|
|
||||||
var ps = createProtoStream()
|
|
||||||
|
|
||||||
ps.on('identify', function (msg) {
|
|
||||||
console.log('RECEIVED PROTOBUF - ', msg)
|
|
||||||
// self.emit('peer-update', {})
|
|
||||||
})
|
|
||||||
|
|
||||||
ps.identify({
|
|
||||||
protocolVersion: 'nop',
|
|
||||||
agentVersion: 'nop'
|
|
||||||
// publicKey: new Buffer(),
|
|
||||||
// listenAddrs: new Buffer([buf1, buf2])
|
|
||||||
// observedAddr: new Buffer()
|
|
||||||
})
|
|
||||||
|
|
||||||
ps.pipe(ps)
|
|
||||||
|
|
||||||
ps.end()
|
|
Loading…
x
Reference in New Issue
Block a user