sending a javascript object through websockets with faye
WebSockets support sending and receiving: strings, typed arrays (ArrayBuffer) and Blobs. Javascript objects must be serialized to one of the above types before sending. To send an object as a string you can use the builtin JSON support: ws.send(JSON.stringify(object)); To send an object as a typed array you can use a javascript BSON library such … Read more