I wanted to know is this really overhead to use comet to update timer over using javascript at client site and posting to server on specific time interval to log time if required?
body() ->
wf:comet(fun() -> counter(1) end),
#panel { id=placeholder }.
counter(Count) ->
timer:sleep(1000),
wf:update(placeholder, integer_to_list(Count)),
wf:flush(),
counter(Count + 1).
I understand its overhead but I want to know how much? as all event communication happens over websocket..