The getPorts RPC is used to retrieve the list of ReceivePort instances for a given isolate.
getPorts
ReceivePort
See PortList.
PortList
Future<PortList> getPorts(String isolateId);