flutter_client_sse 0.1.0 copy "flutter_client_sse: ^0.1.0" to clipboard
flutter_client_sse: ^0.1.0 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

Flutter Client SSE #

Dart package to help consume Server Sent Events

Features: #

  • Consumes server sent events
  • Returns parsed model of the event, id and the data

Getting Started #

Import #

Add the following import in the pubspec.yaml file

client_sse:
    git:
      url: https://github.com/pratikbaid3/flutter_client_sse
      path:

Example #

SSEClient.subscribeToSSE(url,token)
        .listen((event) {
      print('Id: ' + event.id);
      print('Event: ' + event.event);
      print('Data: ' + event.data);
    });
93
likes
130
points
104k
downloads

Publisher

verified publisherhustlecreatives.dev

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)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on flutter_client_sse