flutter_client_sse 0.0.1 copy "flutter_client_sse: ^0.0.1" to clipboard
flutter_client_sse: ^0.0.1 copied to clipboard

outdated

Dart package to help consume SSE

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);
    });
56
likes
0
pub points
92%
popularity

Publisher

unverified uploader

Dart package to help consume SSE

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http

More

Packages that depend on flutter_client_sse