sendSchema method

Future<void> sendSchema()

Implementation

Future<void> sendSchema() async {
  try {
    final serverUrl = getServerUrl();
    final body =
        jsonEncode(EditorMessage("clientSchema", Lowder.getSchema()));
    await http.post(Uri.parse(serverUrl), body: body);
  } catch (e, stack) {
    _log.severe("Error sending schema to Lowder Server: $e", e, stack);
  }
}