Is it possible to send byte data (array) over Websockets or only strings?
So any ideas why ArrayBuffer doesnt work?
Thanks in advance.
The API isn't finalized, but you should be able to use an ArrayBuffer (a JavaScript typed array).
arr[i] seems to work fine in Chrome 15. At any rate, as described on the JavaScript typed arrays page, you should probably be working with a view, and not the raw array. But this is really a separate issue from your original question, so you should ask a separate question if you're having trouble.Yes. Blob objects claim to offer this functionality, but they're only supported on a few browsers to my understanding.
https://developer.mozilla.org/en/WebSockets/WebSockets_reference/WebSocket