simple_sse_http 1.0.0 copy "simple_sse_http: ^1.0.0" to clipboard
simple_sse_http: ^1.0.0 copied to clipboard

An implementation of the `SseClient` interface using the `http` package.

example/simple_sse_http_example.dart

import 'package:simple_sse/simple_sse.dart';
import 'package:simple_sse_http/simple_sse_http.dart';

void main() async {
  final client = HttpSseClient();
  final events = client.connect(Uri.parse('https://sse.dev/test'));

  await for (final SseEvent event in events) {
    print(event.toString());
  }
}
0
likes
160
points
9
downloads

Publisher

verified publisherandyhorn.dev

Weekly Downloads

An implementation of the `SseClient` interface using the `http` package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http, simple_sse

More

Packages that depend on simple_sse_http