Yes, if we send a 'custom' message over, it will go to the default branch 
of the webworker's onmessage handler. Do we need to add something to 
proxyworker.js to support custom data on the worker's side?

On Saturday, February 20, 2016 at 2:54:39 AM UTC+8, Alon Zakai wrote:
>
> 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] <javascript:>> 
> 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] <javascript:>.
>> 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.

Reply via email to