An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/mroth/sseserver

Package sseserver implements a reference Server-Sent Events server, suitable for streaming unidirectional messages over HTTP to web browsers. This implementation also adds easy namespacing so that clients can subscribe to only a specific subset of messages. For more information on the SSE format itself, check out this fairly comprehensive article: http://www.html5rocks.com/en/tutorials/eventsource/basics/ Note that the implementation of SSE in this server intentionally does not implement message IDs. The server opens a HTTP endpoint at /subscribe/:namespace that will accept connections on any suitable child path. The remainder of the path is a virtual endpoint represents the "namespace" for the client connection. For example: SSEMessages broadcast via the server are only delivered to clients subscribed to the endpoint matching their namespace. Namespaces are hierarchical, subscribing to the "parent" endpoint would receive all messages broadcast to all child namespaces as well. E.g. in the previous example, a subscription to "/pets" would receive all messages broadcast to both the dogs and cats namespaces as well.

Ecosystem
proxy.golang.org
Latest Release
v1.1.2
over 2 years ago
Versions
4
Dependent Packages
2
Dependent Repos
5
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/mroth/sseserver
spec
License AGPL-3.0
Namespace github.com/mroth
First Release over 11 years ago
Last Synced 7 days ago
Repository
Stars 111 on GitHub
Forks 17 on GitHub
Commits 59
Committers 4
Avg per Author 14.75
DDS 0.102
Rankings on proxy.golang.org
Overall Top 4.2%
Dependent packages Top 4.2%
Dependent repos Top 2.3%
Forks Top 5.9%