Closed ibeeger closed 9 years ago
var ss = {a:1,b:2} // res.send({a:1}) res.set("Content-Type","application/msgpack"); console.log(msg.encode(ss)); res.end(msg.encode(ss));
how can i get this data on client ?
You have to transfer the data as binary: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data
how can i get this data on client ?