Add onConnected (#39)

Closes https://github.com/dart-lang/sse/issues/38

Before this change consumers of `package:sse` must assume the connection is established immediately. Add `onConnected` to prevent this assumption and so that UIs can react accordingly.
4 files changed
tree: 887c2a12953e7b30fea9757593d52e136f2ef7a3
  1. example/
  2. lib/
  3. test/
  4. tool/
  5. .gitignore
  6. .travis.yml
  7. analysis_options.yaml
  8. AUTHORS
  9. CHANGELOG.md
  10. CONTRIBUTING.md
  11. LICENSE
  12. pubspec.yaml
  13. README.md
README.md

This package provides support for bi-directional communication through Server Sent Events and corresponding POST requests.