https://github.com/launchdarkly/okhttp-eventsource
Server-sent events (SSE) client implementation for Java, based on OkHttp: http://javadoc.io/doc/com.launchdarkly/okhttp-eventsource
https://github.com/launchdarkly/okhttp-eventsource
eventsource java okhttp server-sent-events
Last synced: 11 days ago
JSON representation
Server-sent events (SSE) client implementation for Java, based on OkHttp: http://javadoc.io/doc/com.launchdarkly/okhttp-eventsource
- Host: GitHub
- URL: https://github.com/launchdarkly/okhttp-eventsource
- Owner: launchdarkly
- License: other
- Created: 2016-03-30T04:26:01.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-12-24T19:09:48.000Z (about 1 year ago)
- Last Synced: 2025-05-23T12:42:25.368Z (8 months ago)
- Topics: eventsource, java, okhttp, server-sent-events
- Language: Java
- Homepage:
- Size: 1.32 MB
- Stars: 156
- Watchers: 52
- Forks: 36
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# okhttp-eventsource
[](https://github.com/launchdarkly/okhttp-eventsource/actions/workflows/ci.yml)
[](http://javadoc.io/doc/com.launchdarkly/okhttp-eventsource)
## Overview
This library allows Java developers to consume Server Sent Events from a remote API, using [OkHttp](https://square.github.io/okhttp/) as the transport layer. The SSE spec is defined here: https://html.spec.whatwg.org/multipage/server-sent-events.html
Starting in version 2.0, this library uses OkHttp 4.x and requires Java 8+. If you need support for OkHttp 3.x or Java 7, use the latest 1.x version.
## Contributing
We encourage pull requests and other contributions from the community. See [Contributing](CONTRIBUTING.md).