[erlang-questions] How to build web chat in Erlang?

Rainer Hansen rainer.hansen@REDACTED
Wed Oct 15 12:40:46 CEST 2014

Jesse Gumm <gumm@REDACTED> writes:

> Thanks for the heads up.  There are some auto-reconnection
> capabilities built into Nitrogen, but they are a little nasty and
> undocumented and this particular page does not use them.  I'm working
> to improve this in the upcoming 2.3 release (Which should be ready in
> the next couple of weeks).
> I'll do some playing around tonight and shoot you an email off-list
> tonight or tomorrow.
> -Jesse

thanks a lot for your awesome work. After your updates everything is
working fine. :-)

For all interested, this is what you can do to test the updated version:

1) git clone git://github.com/choptastic/NitrogenProject.com.git --branch tests

2) cd NitrogenProject.com

3) make && make run

4) Go with your web browser to http://localhost:8000/demos/comet2


> On Wed, Oct 8, 2014 at 11:55 AM, Rainer Hansen <rainer.hansen@REDACTED> wrote:
>> Jesse Gumm <gumm@REDACTED> writes:
>>> Hi Rainer,
>>> Nitrogen has a pretty simple chat example:
>>> http://nitrogenproject.com/demos/comet2
>>> (see the "View Source" link to see the code that makes that page
>>> work). Changing that page to use multiple chat rooms is about 5-6 more
>>> lines of code.
>>> Alternatively, you could look into Chicago Boss (go through the
>>> tutorial, and the ways of building a chat system with it should become
>>> rather clear).
>>> Anyway, good luck!
>>> --
>>> Jesse Gumm
>>> Owner, Sigma Star Systems
>>> 414.940.4866 || sigma-star.com || @jessegumm
>> Hi Jesse,
>> thanks for the fast answer and the link to the chat demo. It works great
>> in the desktop browser (Firefox) but on my smartphone browser (also
>> Firefox) I seem to get trouble with timeouts. My smartphone is not
>> constantly connected to the Internet and this seems to cause some
>> trouble. I can still post and others on the same page see the post but
>> nothing is updated in my mobile browser window. I can also not see the
>> updates of others after the connection is once interrupted.
>> Any ideas on how to improve the Nitrogen example to handle this situation?
>> I will also take a look at the Chicago Boss tutorial ...
>> Rainer
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list