<div dir="ltr">I'm speaking somewhat in ignorance here, as I haven't looked comet2 or the nitrogen project recently, but there's bullet for cowboy(1). The JavaScript component(2) comes with fallback methods and auto-reconnect, so it might be worth at least looking at what the JavaScript code is doing, as you might be able to use those concepts in your own project. No guarantees, but just putting it out there.<div><br></div><div>1. <a href="https://github.com/extend/bullet">https://github.com/extend/bullet</a></div><div>2. <a href="https://github.com/extend/bullet/blob/master/priv/bullet.js">https://github.com/extend/bullet/blob/master/priv/bullet.js</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 10:08 AM, Jesse Gumm <span dir="ltr"><<a href="mailto:gumm@sigma-star.com" target="_blank">gumm@sigma-star.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the heads up.  There are some auto-reconnection<br>
capabilities built into Nitrogen, but they are a little nasty and<br>
undocumented and this particular page does not use them.  I'm working<br>
to improve this in the upcoming 2.3 release (Which should be ready in<br>
the next couple of weeks).<br>
<br>
I'll do some playing around tonight and shoot you an email off-list<br>
tonight or tomorrow.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Jesse<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Wed, Oct 8, 2014 at 11:55 AM, Rainer Hansen <<a href="mailto:rainer.hansen@gmx.net">rainer.hansen@gmx.net</a>> wrote:<br>
><br>
> Jesse Gumm <<a href="mailto:gumm@sigma-star.com">gumm@sigma-star.com</a>> writes:<br>
><br>
>> Hi Rainer,<br>
>><br>
>> Nitrogen has a pretty simple chat example:<br>
>> <a href="http://nitrogenproject.com/demos/comet2" target="_blank">http://nitrogenproject.com/demos/comet2</a><br>
>><br>
>> (see the "View Source" link to see the code that makes that page<br>
>> work). Changing that page to use multiple chat rooms is about 5-6 more<br>
>> lines of code.<br>
>><br>
>> Alternatively, you could look into Chicago Boss (go through the<br>
>> tutorial, and the ways of building a chat system with it should become<br>
>> rather clear).<br>
>><br>
>> Anyway, good luck!<br>
>><br>
>> --<br>
>> Jesse Gumm<br>
>> Owner, Sigma Star Systems<br>
>> <a href="tel:414.940.4866" value="+14149404866">414.940.4866</a> || <a href="http://sigma-star.com" target="_blank">sigma-star.com</a> || @jessegumm<br>
><br>
><br>
> Hi Jesse,<br>
><br>
> thanks for the fast answer and the link to the chat demo. It works great<br>
> in the desktop browser (Firefox) but on my smartphone browser (also<br>
> Firefox) I seem to get trouble with timeouts. My smartphone is not<br>
> constantly connected to the Internet and this seems to cause some<br>
> trouble. I can still post and others on the same page see the post but<br>
> nothing is updated in my mobile browser window. I can also not see the<br>
> updates of others after the connection is once interrupted.<br>
><br>
> Any ideas on how to improve the Nitrogen example to handle this situation?<br>
><br>
> I will also take a look at the Chicago Boss tutorial ...<br>
><br>
> Rainer<br>
><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
<br>
<br>
--<br>
Jesse Gumm<br>
Owner, Sigma Star Systems<br>
<a href="tel:414.940.4866" value="+14149404866">414.940.4866</a> || <a href="http://sigma-star.com" target="_blank">sigma-star.com</a> || @jessegumm<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>