> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# WebSocketAdapter

> Browser-compatible WebSocket constructor type.

```ts
type WebSocketAdapter = (url, protocols?) => WebSocketClient
```

Browser-compatible WebSocket constructor type.

## **Parameters**

| Parameter    | Type                    |
| ------------ | ----------------------- |
| `url`        | `string` \| `URL`       |
| `protocols?` | `string` \| `string`\[] |

## **Returns**

`WebSocketClient`