longpoll command

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.

Version
v0.0.0-20250322185616-c50a578426f1 (latest)
Published
Mar 22, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
4 days ago

Tools for package owners.