longpoll

command
v0.0.0-...-c555478 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL