You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP POST and Server-sent events interconnector, allowing simple publish-subsribe scheme using GET and POST requests.
Features
Listening for HTTP 1.1 and HTTP 2 connections and handling GET or POST requests on arbitrary URL.
Broadcasting each POSTed message to each ongoing GET request as a SSE event.
Each URL path gets a separate broadcast domain.
This is intended to be used as a building block, especially during development or prototyping.
Limitations
If receiver reads messages slowly, messages get dropped. If you want adjustable buffer size or other stategies (buffer endlessly or slow down senders), open Github issue with a feature request.
No DoS resistance. Each encountered URL path is remembered forever, there are no limitations for message size or number of paths or receivers.
Installation
Download pre-built executables from Github releases, install it from source code with cargo install --path . or from crates.io with cargo install postsse.
https://github.com/vi/wsbroad - WebSocket analogue. If needed, it is not hard to create a combined publish-subscriber with both POST/SSE and WebSockets.