Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make all connected browsers reload initiated by a server-side event

Suppose there is a webpage with dynamically generated content -- say a div containing the current number of connected browsers. When the count changes on the server I want all connected browsers to reload the count so that everyone sees the increment/decrement.

What's the best way to accomplish this?

Keywords: ajax, broadcast, browser, div, jquery

like image 854
Bee Avatar asked Dec 07 '22 04:12

Bee


1 Answers

I think COMET might be what you're looking for. Web Sockets would be ideal but lack of browser adoption wouldn't make it practical right now.

like image 55
Darrell Brogdon Avatar answered Jan 20 '23 11:01

Darrell Brogdon