<div dir="ltr">thank you</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 24, 2016 at 9:27 PM, Andre LaBranche/ <span dir="ltr">&lt;<a href="mailto:dre@mac.com" target="_blank">dre@mac.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><span></span></div><div><div><span></span></div><div><div><div style="direction:inherit">Hi,</div></div><span class=""><div><div style="direction:inherit"><br></div><div></div>On Nov 24, 2016, at 4:56 PM, Gaurav Jain &lt;<a href="mailto:monkeyfdude@gmail.com" target="_blank">monkeyfdude@gmail.com</a>&gt; wrote:<br><div style="direction:inherit"><br></div></div><blockquote type="cite"><div><div dir="ltr"><div>Is there a sample implementation/design for AMP push <span style="background-color:rgb(248,238,199);color:rgb(121,93,163);font-family:consolas,&quot;liberation mono&quot;,menlo,courier,monospace;font-size:12px;white-space:pre-wrap">SubscribeToID / </span><span style="background-color:rgb(248,238,199);color:rgb(121,93,163);font-family:consolas,&quot;liberation mono&quot;,menlo,courier,monospace;font-size:12px;white-space:pre-wrap">UnsubscribeFromID / </span><span style="background-color:rgb(248,238,199);color:rgb(121,93,163);font-family:consolas,&quot;liberation mono&quot;,menlo,courier,monospace;font-size:12px;white-space:pre-wrap">NotificationForID</span> ?</div></div></div></blockquote><div style="direction:inherit"><br></div></span><div style="direction:inherit">Our calendar client simulator has amp push support, and although doesn&#39;t implement all of the above methods, should get you on the right track:</div><div style="direction:inherit"><br></div><div style="direction:inherit"><a href="https://github.com/apple/ccs-calendarserver/blob/master/contrib/performance/loadtest/amphub.py" target="_blank">https://github.com/apple/ccs-<wbr>calendarserver/blob/master/<wbr>contrib/performance/loadtest/<wbr>amphub.py</a></div></div><div style="direction:inherit"><br></div><div style="direction:inherit"><br></div><div style="direction:inherit">For reference, the server-side amp push implementation is here (good doc strings and such):</div><div style="direction:inherit"><a href="https://github.com/apple/ccs-calendarserver/blob/master/calendarserver/push/amppush.py" target="_blank">https://github.com/apple/ccs-<wbr>calendarserver/blob/master/<wbr>calendarserver/push/amppush.py</a></div><div style="direction:inherit"><br></div><div style="direction:inherit"><br></div></div><div style="direction:inherit">Hope this helps,</div><div style="direction:inherit">-dre</div></div></blockquote></div><br></div>