> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# abortTestWebsocketConnectivity()

> Stop an in-progress testWebsocketConnectivity() test early.

`abortTestWebsocketConnectivity()`

✓ Prebuilt✓ Custom

Stops an in-progress [`testWebsocketConnectivity()`](https://docs.daily.co/reference/daily-js/instance-methods/test-websocket-connectivity) test before it completes. The original `testWebsocketConnectivity()` Promise resolves immediately with partial results — containing information about the regions that were tested up to the abort point — and a [`test-completed`](https://docs.daily.co/reference/daily-js/events/network-events#test-completed) event fires.

If no test is in progress, this method does nothing.

## Return value

`void`

## Example

```javascript theme={null}
const resultPromise = call.testWebsocketConnectivity();

// Abort early if the user cancels
call.abortTestWebsocketConnectivity();

const results = await resultPromise;
console.log(results.result); // 'aborted'
console.log(results.abortedRegions); // regions that were not yet tested when aborted
```

## See also

> [card] Methods
>
> * [testWebsocketConnectivity()](https://docs.daily.co/reference/daily-js/instance-methods/test-websocket-connectivity.md)
> * [testNetworkConnectivity()](https://docs.daily.co/reference/daily-js/instance-methods/test-network-connectivity.md)
> * [abortTestNetworkConnectivity()](https://docs.daily.co/reference/daily-js/instance-methods/abort-test-network-connectivity.md)
> * [testCallQuality()](https://docs.daily.co/reference/daily-js/instance-methods/test-call-quality.md)

> [card] Events
>
> * [test-completed](https://docs.daily.co/reference/daily-js/events/network-events.md#test-completed)

> [card] Guides
>
> * [Network quality](https://docs.daily.co/docs/daily-js/guides/network-quality.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.