by nevi-me · 10y ago · 0 comments
I manage the frequency of socket emits using RxJS, to prevent sending too many changes to users.
https://movinggauteng.co.za, there's a counter at the top of the page.
EDIT: Only saw a comment about why the OP used Ajax after posting this.
[1] https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...
The reasons why I used WebSockets are that I get a disconnect event immediately, and I was already using WebSockets for other features on the site
But yes, if you're already using websockets for other features, there's no reason not to continue to use them, as you explained :)
http://stackoverflow.com/questions/37401250/how-do-i-deploy-...