at_server_status 1.0.1
at_server_status: ^1.0.1 copied to clipboard

The at_server_status library provides an easy means to check on the status of the @root server as well as the @server for a particular @sign.

example/at_server_status_example.dart

import 'package:at_server_status/at_server_status.dart';

void main() async {
  var activationNotStarted = '@small73sepia';
  var readyToActivate = '@bullridingcapable';
  var paired = '@13majorfishtaco';

  Future<AtStatus> getAtStatus(atSign) async {
    AtStatus atStatus;
    AtStatusImpl atStatusImpl;

    // AtStatus atStatus = await atStatusImpl.get(atSign);
    // AtSignStatus atSignStatus = atStatus.status();
    // int httpStatus = atStatus.httpStatus();
    atStatusImpl = AtStatusImpl();
    atStatus = await atStatusImpl.get(atSign);
    print('status for : $atSign');
    print('rootStatus: ${atStatus.rootStatus}');
    print('serverStatus: ${atStatus.serverStatus}');
    print('status: ${atStatus.status()}');
    print('httpStatus: ${atStatus.httpStatus()}');
    print('\n');

    return atStatus;
  }

  await getAtStatus(activationNotStarted);
  await getAtStatus(readyToActivate);
  await getAtStatus(paired);
}
5
likes
110
pub points
83%
popularity

Publisher

atsign.org

The at_server_status library provides an easy means to check on the status of the @root server as well as the @server for a particular @sign.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

BSD (LICENSE)

Dependencies

at_commons, at_lookup, at_utils, uuid

More

Packages that depend on at_server_status