MCPcopy Index your code
hub / github.com/callstack/agent-device / removeProviderPortReverse

Function removeProviderPortReverse

src/provider-device-runtime.ts:142–151  ·  view source on GitHub ↗
(
  options: ProviderPortReverseOptions,
)

Source from the content-addressed store, hash-verified

140}
141
142export async function removeProviderPortReverse(
143 options: ProviderPortReverseOptions,
144): Promise<Record<string, unknown> | undefined> {
145 for (const runtime of getActiveProviderDeviceRuntimes()) {
146 if (!runtimeMatchesProvider(runtime, options.provider)) continue;
147 const result = await runtime.removePortReverse?.(options);
148 if (result) return result;
149 }
150 return undefined;
151}
152
153function getActiveProviderDeviceRuntimes(): ProviderDeviceRuntime[] {
154 return providerDeviceRuntimeScope.getStore() ?? activeProviderDeviceRuntimes;

Callers 2

executePortReverseActionFunction · 0.90

Calls 3

runtimeMatchesProviderFunction · 0.85
removePortReverseMethod · 0.80

Tested by 1