This package provides support for bi-directional communication through Server Sent Events and corresponding POST requests. It's platform-independent, and can be used on both the command-line and the browser.
A simple usage example:
import 'package:sse_client/sse_client.dart';
main() {
}