There is a similar question ( how to handle an HTTP stream using Dart ) about processing streams in dart2js. I am focused on vm.
I can read from the specification that:
The contents of the message can be: primitive values (null, num, bool, double, String), SendPort instances, and lists and maps whose elements are any of them. The list and maps can also be cyclic.
In special cases, when two isolators have the same code and work in the same process (for example, isolates created using spawn), you can also send instances of objects (which will be copied in the process). This is currently only supported by dartvm. Currently, the dart2js compiler only supports the limited messages described above.
I found out that I cannot send the following objects to and from isolated: HttpRequest and HttpResponse objects, I can not send streams.
Q: I can’t understand how I should process a large piece of data in isolation, and then send it back to the main isolator and, in turn, it can be sent back to the client.
, . , , HTTP-. ?
!