Message Channel in Shared Worker

140 views
Skip to first unread message

Patryk Stępień

unread,
Jun 12, 2013, 3:42:10 AM6/12/13
to chromiu...@chromium.org
Does Message Channel work in Shared Workers? I want to create some kind of communication between several Shared Workers, but when I send message from first worker using message channel I don't receive it in second worker. I posted example on stackoverflow: http://stackoverflow.com/questions/17018104/message-channel-in-shared-workers

Drew Wilson

unread,
Jun 12, 2013, 8:21:10 AM6/12/13
to Patryk Stępień, Chromium HTML5
This should absolutely work. To debug this, I'd say:

1) Try using regular workers, not shared workers - does it work in that case?
2) If not, try keeping one end of the MessageChannel in your web page and send the other end to a Worker/SharedWorker. Does that work?



On Wed, Jun 12, 2013 at 9:42 AM, Patryk Stępień <patryk90...@gmail.com> wrote:
Does Message Channel work in Shared Workers? I want to create some kind of communication between several Shared Workers, but when I send message from first worker using message channel I don't receive it in second worker. I posted example on stackoverflow: http://stackoverflow.com/questions/17018104/message-channel-in-shared-workers

--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-html...@chromium.org.
To post to this group, send email to chromiu...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.
 
 

Message has been deleted

Drew Wilson

unread,
Jun 18, 2013, 8:31:21 PM6/18/13
to Patryk Stępień, Chromium HTML5
Yeah, your first approach should have worked. If you can file a bug at crbug.com with a repro case as described here it would be appreciated so we can track this issue and investigate further.


On Thu, Jun 13, 2013 at 3:41 AM, Patryk Stępień <patryk90...@gmail.com> wrote:
When I keep one end in web page it works. When I created MC in shared worker and passed it to another worker through web page it also worked. I can handle that, but I'm curious why my first approach didn't work.

Thanks for your answer.

---
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Katherine Stephens

Reply all
Reply to author
Forward
0 new messages