setCommandSubscriptions method

  1. @override
Future<ForgeOutcome> setCommandSubscriptions(
  1. List<String> names
)
override

Replaces the full set of remote command names the host listens to (replace semantics). Unsubscribed names are auto-answered handled=false by the kernel.

Implementation

@override
Future<ForgeOutcome> setCommandSubscriptions(List<String> names) async {
  commandSubscriptions.add(List<String>.of(names));
  calls.add('subscriptions:${names.join(",")}');
  return const ForgeOutcome(ForgeOutcomeKind.accepted);
}