Skip to content

Commit 3896410

Browse files
committed
insecure speed test
1 parent bebc86f commit 3896410

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"alias": {
1010
"events": "eventemitter3",
1111
"process": "process/browser.js",
12+
"path": "path-browserify",
1213
"assert": "assert",
1314
"crypto": "crypto-browserify"
1415
},

public/example.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,8 @@
8484

8585
let statusId = 'publish:'+timeTopic.name+':'+ (party.comms.ros.idCounter+num)
8686

87-
console.log(statusId)
88-
8987

9088
party.comms.once(statusId,(status)=>{
91-
console.log('status', status)
9289

9390
setTimeout(onTimeout, 0)
9491
})

src/comms/ros-shim.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class RosShim extends ROSLIB.Ros {
3838
this.emit(message.service, message);
3939
}*/ else if(message.op === 'status'){
4040

41-
console.log('status', message)
4241

4342
if(message.id){
4443
this.emit('status:'+message.id, message);

src/topics/peer-node.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ class PeerNode {
2121

2222
debug(' publish to node', this.uuid)
2323

24-
await this.peer.send({
24+
/*await this.peer.send({
2525
op: 'publish',
2626
id: 'publish:'+this.peer.opId,
2727
topic: topic.path,
2828
sender: { uuid: this.uuid, identity: this.peer.remoteIdentity },
2929
msg: data
30-
})
30+
})*/
3131

32-
/*await this.peer.socket.send(JSON.stringify({
32+
await this.peer.socket.send(JSON.stringify({
3333
op: 'publish',
3434
id: 'publish:'+this.peer.opId,
3535
topic: topic.path,
3636
sender: { uuid: this.uuid, identity: this.peer.remoteIdentity },
3737
msg: data
38-
}))*/
38+
}))
3939

4040
}
4141
}

0 commit comments

Comments
 (0)