An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# okhttp-eventsource

[![Actions Status](https://github.com/launchdarkly/okhttp-eventsource/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/launchdarkly/okhttp-eventsource/actions/workflows/ci.yml)
[![Javadocs](http://javadoc.io/badge/com.launchdarkly/okhttp-eventsource.svg)](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).