***

title: stopTap
slug: /reference/typescript/agents/function-result/stop-tap
description: Stop an active media tap stream.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[functionresult]: /docs/server-sdks/reference/typescript/agents/function-result

Stop an active media tap stream.

## **Parameters**

<ParamField path="controlId" type="string | undefined" default="undefined" toc={true}>
  Identifier of the tap to stop. If not provided, the most recently started
  tap is stopped.
</ParamField>

## **Returns**

[`FunctionResult`][functionresult] -- `this`, for chaining.

## **Example**

```typescript {4}
import { FunctionResult } from '@signalwire/sdk';

const result = new FunctionResult()
  .stopTap();
```