By Psant
via blog.digitalbackcountry.com
Published: Jan 30 2012 / 11:28
I’m not sure how helpful this will be for anyone but during the process of doing a binary WebSocket demo I found myself learning a lot about JavaScript typed arrays and how that translates into binary data. The demo I wrote took Canvas image data and send it over a binary WebSocket connection the WebSocket server took that data and sent it out to all of the connected clients who would then render the Canvas data as a PNG. It’s kind of a niche use case but I wanted to specifically create a binary WebSocket demo but it also was a smaller way to send image data than doing something like base64 encoding it. First off, the Mozilla documentation was REALLY helpful. Major props to them.
Tweet
SaveShareSend
Tags: flash-flex, javascript



Add your comment