sse-server 0.0.2

SSE server using Actix Web
Documentation

SSE server using Actix Web

crates.io

Use

use sse_server::{sse_start};

#[actix_rt::main]
async fn main() -> std::result::Result<(), std::io::Error> {
    sse_start("*".to_owned()).await
}
  • the only param is the origin you want to allow - wildcard for all
  • the PORT needs to passed in as an environment variable

Example

  • run make and make client in two different terminal windows to run example

Example