1

here is the question: when one user upload something to the server(apache). the server will " push " the request data to all the users . and I don't want to use "ajax" or javascript "timeout reload"。 It costs a lot so, Is there any javascript lib can implement the "server push" technology?

guyuequan
  • 75
  • 1
  • 11

1 Answers1

0

You could use WebSockets. I, for one, am using long pooling through XMPP, but I think WebSockets looks promising (maybe my next product version will use WebSockets).

See this StackOverflow question for some details regarding WebSockets support.

Implementation wise, you could use a combination of Socket.IO and node.js to achieve the WebSockets "server push". An example of someone doing this can be found here.

Community
  • 1
  • 1
Ando
  • 11,199
  • 2
  • 30
  • 46