Question

is there a jquery library that can receive notifications from the server? For example, a background task is running on the server, during the processing, I would like the server to "push" a message to the client browser when certain events occur on the server.

I can also use ajax polling to see if a new message has arrived. I'm wondering if there's another way.

Was it helpful?

Solution

UPDATE: Since I first wrote this, Portal reached end-of-life, as pointed out by the author in the comments below. The next suggested library is Vibe.

Using Vibe:

Here are instructions to migrate away from Portal:

Here is a quick-start guide for using Vibe:


Portal.js: https://github.com/flowersinthesand/portal

This handles many forms of server connection, and is cross browser compatible.

Here is an overall explanation of the library: http://flowersinthesand.github.io/portal/

Here's how to get started: http://flowersinthesand.github.io/portal/documentation/1.1.1/getting-started/

Library choices are a matter of opinion. This library has been really awesome to use for me. It actually does not require jQuery, and it is under 9k in size.


Here are more, which do depend on jQuery:

Google search: https://www.google.com/search?q=websocket+jquery+plugins

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top