realtime chat on erlang