<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 6, 2015, at 3:38 AM, Lukáš Fryč &lt;<a href="mailto:lukas.fryc@gmail.com" class="">lukas.fryc@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">It is very good idea, and a nice way how to integrate with existing libraries.<div class=""><br class=""></div><div class=""><div class="">It shields user from one round of conflict resolution handling.</div><div class=""><br class=""></div><div class="">I have created a small diagram to better understand that and it revealed one more fact:</div><div class=""><br class=""></div><div class=""><a href="https://docs.google.com/drawings/d/1vIqYjfukHwb9HVuYAlf9eO5U_Eopgl9EOZyG22wEV2s/edit?usp=sharing" class="">https://docs.google.com/drawings/d/1vIqYjfukHwb9HVuYAlf9eO5U_Eopgl9EOZyG22wEV2s/edit?usp=sharing</a></div><div class=""><br class=""></div></div><div class="">As seen on the diagram, user would still have to Merge on the programmatic layer, where we could offer a DiffMatchPatch alghoritm,</div></div></div></blockquote>i think i use that algorithm in the repo example<br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">and/or integration with selected existing libraries (e.g. AngularJS ResoureProvider or Restangular or similar Ember approach).</div></div></div></blockquote><div><br class=""></div>correct, &nbsp;however that particular lib deals with a 409 error, &nbsp;then they can keep doing what they are doing<br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">I believe we don't have to handle "I work for second and later requests" problem you mentioned in the blog, since I assume ServiceWorker will react on the REST calls from the application once it is registered (not sure that's the case). That's with a question mark. :-)</div></div></div></blockquote><div><br class=""></div><div>this section explains this a little more:</div><div><br class=""></div><div><a href="https://github.com/slightlyoff/ServiceWorker/blob/master/explainer.md#so-im-controlling-pages-now" class="">https://github.com/slightlyoff/ServiceWorker/blob/master/explainer.md#so-im-controlling-pages-now</a></div><div><br class=""></div><div>however the last line : “<span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; font-size: 16px; line-height: 25.6000003814697px; background-color: rgb(255, 255, 255);" class="">However, a ServiceWorker can call&nbsp;</span><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; padding: 0.2em 0px; margin: 0px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(51, 51, 51); background-color: rgba(0, 0, 0, 0.0392157);" class="">event.replace()</code><span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; font-size: 16px; line-height: 25.6000003814697px; background-color: rgb(255, 255, 255);" class="">&nbsp;during the&nbsp;</span><code style="box-sizing: border-box; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; padding: 0.2em 0px; margin: 0px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; color: rgb(51, 51, 51); background-color: rgba(0, 0, 0, 0.0392157);" class="">install</code><span style="color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; font-size: 16px; line-height: 25.6000003814697px; background-color: rgb(255, 255, 255);" class="">&nbsp;event to do an immediate takeover of all pages within scope</span>” i’m not sure if that means “take over the page without having to refresh” or not. &nbsp;i will play with that</div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Jan 5, 2015 at 6:15 PM, Daniel Bevenius <span dir="ltr" class="">&lt;<a href="mailto:daniel.bevenius@gmail.com" target="_blank" class="">daniel.bevenius@gmail.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">nice work!<br class=""><br class="">måndag 5 januari 2015 skrev Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com" target="_blank" class="">lholmqui@redhat.com</a>&gt;:<div class="HOEnZb"><div class="h5"><br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Here is my blog post on using Service Workers for Conflict Resolution<div class=""><br class=""></div><div class=""><br class=""></div><div class=""><a href="http://blog.lholmquist.org/service-workers-can-settle-conflicts-too/" target="_blank" class="">http://blog.lholmquist.org/service-workers-can-settle-conflicts-too/</a></div></div></blockquote>
</div></div><br class="">_______________________________________________<br class="">
aerogear-dev mailing list<br class="">
<a href="mailto:aerogear-dev@lists.jboss.org" class="">aerogear-dev@lists.jboss.org</a><br class="">
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank" class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">aerogear-dev mailing list<br class=""><a href="mailto:aerogear-dev@lists.jboss.org" class="">aerogear-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/aerogear-dev</div></blockquote></div><br class=""></body></html>