angel_poll 1.0.0 copy "angel_poll: ^1.0.0" to clipboard
angel_poll: ^1.0.0 copied to clipboard

package:angel_client support for "realtime" interactions with Angel via long polling.

example/main.dart

import 'package:angel_client/io.dart';
import 'package:angel_poll/angel_poll.dart';

main() {
  var app = new Rest('http://localhost:3000');

  var todos = new ServiceList(
    new PollingService(
      // Typically, you'll pass a REST-based service instance here.
      app.service('api/todos'),

      // `index` called every 5 seconds
      const Duration(seconds: 5),
    ),
  );

  todos.onChange.listen((_) {
    // Something happened here.
    // Maybe an item was created, modified, etc.
  });
}
0
likes
50
pub points
0%
popularity

Publisher

unverified uploader

package:angel_client support for "realtime" interactions with Angel via long polling.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

angel_client, async, collection

More

Packages that depend on angel_poll