requestString<T> method
requestString() helper to request()
Implementation
Future<Message<T>> requestString<T>(
String subj,
String data, {
Duration timeout = const Duration(seconds: 2),
T Function(String)? jsonDecoder,
}) {
return request<T>(
subj,
Uint8List.fromList(data.codeUnits),
timeout: timeout,
jsonDecoder: jsonDecoder,
);
}