Change writeMessage example to show arbituary data write

This commit is contained in:
haad 2015-12-27 18:24:59 +02:00
parent 032f7b44ed
commit f831ad34a7

View File

@ -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 ++;
}