Ecosyste.ms: Packages

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

Top 4.2% on proxy.golang.org
Top 4.2% dependent packages on proxy.golang.org
Top 2.3% dependent repos on proxy.golang.org
Top 5.9% forks on proxy.golang.org

proxy.golang.org : 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.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mroth/sseserver
Keywords: eventsource, go, golang, server, sse, streaming
License: AGPL-3.0
Latest release: 10 months ago
First release: almost 10 years ago
Namespace: github.com/mroth
Dependent packages: 2
Dependent repositories: 5
Stars: 100 on GitHub
Forks: 13 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/mroth
Last synced: 12 days ago

    Loading...
    Readme
    Loading...