Drop dependency on package:uuid (#32)

Switch to a v4 UUID. We were not depending on the specific UUID version
used and the random approach has a simpler implementation.

Copy a small implementation of UUID generation from
https://github.com/dart-lang/usage/blob/16fbfd90c58f16e016a295a880bc722d2547d2c9/lib/uuid/uuid.dart

Refactor to a top level method since it is only used once from this
package.
5 files changed
tree: 0668c6e8f9a4e439ce25a2cf82d9ab6002428373
  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.