You should be able to just postMessage to the thread in JS, and receive it in JS. The only risk is it might confuse our existing onmessage on the other side, so we might need to add a "custom message type".
On Fri, Feb 19, 2016 at 1:05 AM, awt <[email protected]> wrote: > Hi, > > I have a use case where I try to open a local file on the main thread and > try to send the contents as a buffer to the worker thread. Is this possible > with Proxy-To-Worker? At present, I only know that we can pass keyboard and > mouse events over to the worker thread. > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
