mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-05-30 10:46:36 +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) {
|
||||
var timer = new Timer(true);
|
||||
// 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");
|
||||
i ++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user