emit in rAF

moved emit back into the rAF loop, not setInterval. May be an issue
with dropping connections that are nonvisibile but more polite to
bandwidth.