how to use service workers from dart

180 views
Skip to first unread message

Peter StJ

unread,
Jan 22, 2015, 12:18:56 PM1/22/15
to w...@dartlang.org
Hi,

I am researching for a new large project and I was wondering how is service worker going to work from within dart?

Currently I see some classes as auto completion but no help or anything on how to use those.

As far as I know service worker scripts need to be separate from the application (all current examples do that) and those separate scripts are then registered, use 'self' as global object etc.

Would we be able to use dart to develop the workers as well as to install it/add it (I would expect the second to be no problem).

I know they are not currently in stable, but by the time I have to release they will be so I would love if there was an example project or a blog post or anything really to explain how is this all going to work both on dartVm as well as when compiled.

Thanks.
----
Петър

Seth Ladd

unread,
Jan 22, 2015, 2:26:58 PM1/22/15
to web
On Thu, Jan 22, 2015 at 9:18 AM, Peter StJ <regard...@gmail.com> wrote:
Hi,

I am researching for a new large project and I was wondering how is service worker going to work from within dart?

Currently I see some classes as auto completion but no help or anything on how to use those.

As far as I know service worker scripts need to be separate from the application (all current examples do that) and those separate scripts are then registered, use 'self' as global object etc.

Would we be able to use dart to develop the workers as well as to install it/add it (I would expect the second to be no problem).

I know they are not currently in stable,

ServiceWorkers are turned on by default in Chrome 40, which just went to stable. Yay!
 
but by the time I have to release they will be so I would love if there was an example project or a blog post or anything really to explain how is this all going to work both on dartVm as well as when compiled.

Thanks.
----
Петър

--
You received this message because you are subscribed to the Google Groups "Dart Web Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web+uns...@dartlang.org.
Visit this group at http://groups.google.com/a/dartlang.org/group/web/.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/web/CACD-9%3Dog9hOZausxTT6Eiag5uPL9xaso5mcoz6_cB1YRK3dkGw%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages