<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">+1 this is how we are doing it on the javascript client now( although not yet published to npm )<br class=""><div><blockquote type="cite" class=""><div class="">On Nov 10, 2014, at 2:31 AM, Erik Jan de Wit <<a href="mailto:edewit@redhat.com" class="">edewit@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">+1 I like the static methods for creating the builder</div><div class="">Also makes perfect sense to make the applicationId and masterSecret part of the sender.<br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class=""><div class="">PushSender client = DefaultPushSender.withRootServerURL("<a href="http://aerogear.example.com/ag-push" class="">http://aerogear.example.com/ag-push</a>")</div><div class=""> .proxy("proxy", 8080)</div><div class=""> .proxyType(Proxy.Type.HTTP)</div><div class=""> .build();</div></div><div class="">PushSender client = DefaultPushSender.withConfig("/path/on/classpath/push-config.json").build();</div><div class="">PushSender client = DefaultPushSender.withConfig(inputstream).build();<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></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>