Re: [ServiceWorker] ServiceWorkerClient to Client (#588)

> We can do subclassing but then we'd have to define DedicatedWorkerClient and SharedWorkerClient separately as well,

Why? `BasicClient` and `WindowClient` or similar seems like it would work.

> and getAll() should resolve with a sequence holding a mix of those different types of objects. Would that be a better design for authors?

Yes, definitely.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/588#issuecomment-67016861

Received on Monday, 15 December 2014 16:07:21 UTC