4 ms·
This Erlang web framework already has something like this: https://github.com/5HT/n2o https://github.com/5HT/n2o Excerpt: body() -> {ok,Pid} = wf:com
by rdtsc 12y ago
This Erlang web framework already has something like this:
https://github.com/5HT/n2o https://github.com/5HT/n2o
Excerpt:
body() ->
{ok,Pid} = wf:comet(fun() -> chat_loop() end),
[ #panel{id=history}, #textbox{id=message},
#button{id=send,body="Chat",postback=chat,Pid},source=[message]} ].
Also comes with bidirectional Websocket connection support.
It is based on a similar project called Nitrogen.