hopefully does the job globally across browsers.
i enjoyed making it so you could send json across the wire through websockets
Sending json
json -> bson -> ws binary
Recieving json
ws -> bson -> json
hopefully does the job globally across browsers.
i enjoyed making it so you could send json across the wire through websockets
Sending json
json -> bson -> ws binary
Recieving json
ws -> bson -> json
I think You can also stringify json then send.
JSON.stringify(obj)
yes that would work, though i think you wouldn’t get the benefits of bson in sending numbers over the wire.