Can anyone point me to any sort of documentation for how to implement binary on socket.io? Its listed that they have added the support a few months ago, but i cant find any documentation for it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Socket.IO doesn’t support binary data as not all transports support this. What you should do instead is taking a look at http://binaryjs.com/
If you do not want to such a solution you will have to pack all your binary data in to a string and decode it again on the client side.. But this is basically the same that binaryjs is also doing. It using a customized messagepack (encoder) to send the data see https://github.com/binaryjs/js-binarypack