mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-02 04:06:37 +00:00
Change writeMessage example to show arbituary data write
This commit is contained in:
parent
032f7b44ed
commit
f831ad34a7
@ -23,7 +23,7 @@ let run = (async(() => {
|
|||||||
while(i < messages) {
|
while(i < messages) {
|
||||||
var timer = new Timer(true);
|
var timer = new Timer(true);
|
||||||
// Send a message
|
// Send a message
|
||||||
var head = orbit.channel(channel, '').send('hello');
|
var head = orbit.channel(channel, '').send(JSON.stringify({ omg: "hello" }));
|
||||||
console.log(i, head, timer.stop() + "ms");
|
console.log(i, head, timer.stop() + "ms");
|
||||||
i ++;
|
i ++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user