Developing Real-Time Websites

Tips and tricks for the Real-Time Web

View the Project on GitHub jchadwick/RealTimeWeb

Real-Time Technique: Long Polling

Long Polling makes a continuous stream of requests to a resource, but the request doesn't come back until there is data to return

The following demo calls /Handlers/NewsFeedLongPolling.ashx and waits for a response

Server-Side Code

Client-Side Code