I'm using protocol buffers in dart but having an issue due to the way data is received from the web socket connection. Binary data is being received as a Blob, and the constructor for the protobuf message is expecting a List<int>. How would I go about converting a Blob into a List<int>?
I was able to get this working by setting the binaryType property on the WebSocket object to "arraybuffer".
webSocket.binaryType = "arraybuffer";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With