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]} ].
It is based on a similar project called Nitrogen.
https://github.com/5HT/n2o
Excerpt:
Also comes with bidirectional Websocket connection support.It is based on a similar project called Nitrogen.