client_sse 1.0.0-beta copy "client_sse: ^1.0.0-beta" to clipboard
client_sse: ^1.0.0-beta copied to clipboard

Dart package to help consume SSE API. It consumes server sent events by returning parsed model of the event, id, and the data

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add client_sse

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  client_sse: ^1.0.0-beta

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:client_sse/constants/sse_request_type_enum.dart';
import 'package:client_sse/flutter_client_sse.dart';
import 'package:client_sse/retry_options.dart';
import 'package:client_sse/sse_event_model.dart';
import 'package:client_sse/utils.dart';
0
likes
150
points
37
downloads

Documentation

API reference

Publisher

verified publisherentornosweb.co

Weekly Downloads

Dart package to help consume SSE API. It consumes server sent events by returning parsed model of the event, id, and the data

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http, logging

More

Packages that depend on client_sse