core icon indicating copy to clipboard operation
core copied to clipboard

Improving dotCMS notifications check

Open jgambarios opened this issue 11 years ago • 2 comments

I wonder if we can improve the notifications code in order to avoid requests every 5 seconds on every open window:

``javascript // check for new notifications now and every N seconds checkNotifications(); window.setInterval(function(){ checkNotifications(); }, 5000);``

I can think for now in two options:

  • Web sockets
  • HTML5 Server-Sent Events

jgambarios avatar Jun 03 '15 17:06 jgambarios

Good thoughts Jonathan. I'd vote for websockets that can wrap some lightweight messaging protocol that we can use for multiple purposes, not just notifications. We've needed a channel open to the users browser

dotcmsCodeReview avatar Jun 03 '15 17:06 dotcmsCodeReview

This issue has been automatically marked as stale because it has not had activity within the past 90 days. It will be closed in 30 days no further activity occurs. Thank you.

stale[bot] avatar Sep 29 '19 07:09 stale[bot]