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

Top 3.9% on proxy.golang.org
Top 1.9% dependent packages on proxy.golang.org
Top 2.5% dependent repos on proxy.golang.org
Top 7.4% forks on proxy.golang.org

proxy.golang.org : github.com/tmaxmax/go-sse

Package sse provides utilities for creating and consuming fully spec-compliant HTML5 server-sent events streams. The central piece of a server's implementation is the Provider interface. A Provider describes a publish-subscribe system that can be used to implement messaging for the SSE protocol. This package already has an implementation, called Joe, that is the default provider for any server. Abstracting the messaging system implementation away allows servers to use any arbitrary provider under the same interface. The default provider will work for simple use-cases, but where scalability is required, one will look at a more suitable solution. Adapters that satisfy the Provider interface can easily be created, and then plugged into the server instance. Events themselves are represented using the Message type. On the client-side, we use the Client struct to create connections to event streams. Using an `http.Request` we instantiate a Connection. Then we subscribe to incoming events using callback functions, and then we establish the connection by calling the Connection's Connect method.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/tmaxmax/go-sse
Keywords: go , golang , golang-libary , html5 , html5-sse , http , http-client , http-server , server , server-sent-event , server-sent-events , sse
License: MIT
Latest release: about 2 months ago
First release: almost 4 years ago
Namespace: github.com/tmaxmax
Dependent packages: 8
Dependent repositories: 4
Stars: 164 on GitHub
Forks: 7 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago

    Loading...
    Readme
    Loading...