The getPorts RPC is used to retrieve the list of ReceivePort instances for a given isolate.
getPorts
ReceivePort
See PortList.
Future<PortList> getPorts(String isolateId) => _call('getPorts', {'isolateId': isolateId});