simple_sse_dio 1.0.1 copy "simple_sse_dio: ^1.0.1" to clipboard
simple_sse_dio: ^1.0.1 copied to clipboard

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

example/simple_sse_dio_example.dart

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

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

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

Publisher

verified publisherandyhorn.dev

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio, simple_sse

More

Packages that depend on simple_sse_dio