Documentation ¶
Overview ¶
This is an example longpoll client. The connection to the corresponding server initiates a request on a "Watch". It then waits until a redirect is received from the server which indicates that the watch is ready. To signal than an event on this watch has occurred, the server sends a final message.
This is an example longpoll server. On client connection it starts a "Watch", and notifies the client with a redirect when that watch is ready. This is important to avoid a possible race between when the client believes the watch is actually ready, and when the server actually is watching.
Click to show internal directories.
Click to hide internal directories.