--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Stephen,Thanks for taking a stab at this. Maybe my terminology was off but for clarification I do not want to drop any messages. Rather I want to queue them and control the rate at which Angular digest cycle processes them. In many cases when a new message arrives you could push the message into the messages array and immediately call $scope.$apply() to force a view update, however if the socket was flooded worth messages you would not want to force the update every time but rather queue them process in batches. It is important (in my case) that all messages get processed. I hope this makes sense.Thanks!
Nolan
On Thursday, August 22, 2013, Stephen Blum wrote:
Solution posted on Stackoverflow - http://stackoverflow.com/questions/18364918/throttling-pubnub-requests-in-angluarjs/18370670#18370670--
On Tuesday, August 20, 2013 7:33:55 PM UTC-7, Stephen Blum wrote:Nolan,Hi! You have a good question here but I wanted to confirm if you are considering throttling on the Send or Receive side?
On Monday, August 19, 2013 10:42:04 PM UTC-7, Sander Elias wrote:Hi Nolan,What are you trying to achieve? Do you need all the messages you get from the server, or not? Are they vital to your system? I would set up a que, and then use a timeout to evaluate the queue every x milliseconds. wehn evaluating your que, you can handle or drop whatever strikes your fancy!
RegardsSander Elias
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.