socket.io streaming binary data
问题 I have just started using node.js, I'm running a node server with sockets.io and i need to send a buffer of bytes to the client. I understand that this can be done by first translating the byte buffer to base64 and sending that, then translating it back on the client side. but i was wondering if there is a more elegant way of getting the byte stream to the client. 回答1: Socket.IO 1.0 Now supports Binary data transfer. Please have a look here . You can use Blob, ArrayBuffer and File. 回答2: https