Now, I get an List<int> (Uint8List) from the MessageEvent data.
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
if (e.data is Uint8List) {
// Dartium
mm = new MyMessage.fromBuffer(e.data);
} else {
// Javascript
ByteBuffer buf = e.data as ByteBuffer;
mm = new MyMessage.fromBuffer(new Uint8List.view(buf));