sendMessage method
Send a request to the Node and wait for a response
Implementation
Future<Map<String, dynamic>> sendMessage(Map<String, dynamic> message) async {
try {
final msg = json.encode(message) + '\n';
final response = await _handle(msg);
return response;
} catch (e) {
rethrow;
}
}