hyperlane-plugin-sse 23.3.2

A Server-Sent Events (SSE) streaming and topic pub/sub plugin for the Hyperlane framework with Last-Event-ID replay, heartbeat, and CRLF-safe event framing.
Documentation
<div align="center">

<img src="https://devhub.vip/pages/docs/img/hyperlane.png" alt="hyperlane-plugin-sse logo" height="120">

# hyperlane-plugin-sse

**WHATWG Server-Sent Events (SSE) Streaming & Topic Pub/Sub Plugin**

[![Crates.io Version](https://flat.badgen.net/crates/v/hyperlane-plugin-sse)](https://crates.io/crates/hyperlane-plugin-sse)
[![Docs.rs](https://img.shields.io/docsrs/hyperlane-plugin-sse?style=flat-square)](https://docs.rs/hyperlane-plugin-sse)
[![CI Status](https://img.shields.io/github/actions/workflow/status/hyperlane-dev/hyperlane/rust.yml?branch=master&style=flat-square&label=CI)](https://github.com/hyperlane-dev/hyperlane/actions/workflows/rust.yml)
[![Rust 2024](https://img.shields.io/badge/edition-2024-orange.svg?style=flat-square)](https://www.rust-lang.org)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](../../LICENSE)

[Workspace Overview](../../README.md) · [Plugin Catalog](../README.md) · [API Docs](https://docs.rs/hyperlane-plugin-sse/latest/)

</div>

---

## Overview

`hyperlane-plugin-sse` delivers WHATWG-compliant Server-Sent Events streaming, topic pub/sub fan-out, heartbeats, and `Last-Event-ID` replay buffers for [`hyperlane`](../../README.md) routes.

## Installation

```sh
cargo add hyperlane-plugin-sse
```

## Usage

```rust
use hyperlane_plugin_sse::{SseConfig, SsePlugin};

fn setup_sse() {
    SsePlugin::init(SseConfig::default());
}
```

## Verification

```sh
cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-sse --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-sse --all-features
```

## License

This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.

## Contact

For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).