bridgeCall method
Implementation
Future<Uint8List> bridgeCall(String name, Uint8List? /*!*/ request) async {
_counter++;
var id = _counter.toString();
var completer = Completer<Uint8List>();
completers[id] = completer;
worker.postMessage(RsaRequest(
id: id,
name: name,
request: request?.toJS,
));
return completer.future;
}