flutter_http_sse 1.0.0
flutter_http_sse: ^1.0.0 copied to clipboard
Flutter HTTP Server-Sent Events (SSE) client library for receive real-time updates from the server
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add flutter_http_sse
With Flutter:
$ flutter pub add flutter_http_sse
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
flutter_http_sse: ^1.0.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_http_sse/client/i_sse_client.dart';
import 'package:flutter_http_sse/client/sse_client.dart';
import 'package:flutter_http_sse/enum/request_content_type_enum.dart';
import 'package:flutter_http_sse/enum/request_method_type_enum.dart';
import 'package:flutter_http_sse/model/base_request.dart';
import 'package:flutter_http_sse/model/sse_request.dart';
import 'package:flutter_http_sse/model/sse_response.dart';