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

# getWebSocketAuthHeaders

```ts theme={null}
function getWebSocketAuthHeaders(options: GetWebSocketAuthHeadersOptions): Promise<Record<string, string>>;
```

Defined in: [utils/ws.ts:57](https://github.com/coinbase/cdp-sdk/blob/30d1b3dc350cd763fecf481c5bc976bd77951f3b/typescript/packages/cdp-sdk/src/auth/utils/ws.ts#L57)

Gets authentication headers for a WebSocket connection.

## Parameters

### options

[`GetWebSocketAuthHeadersOptions`](/sdks/cdp-sdks-v2/typescript/auth/WebSocket/index#getwebsocketauthheadersoptions)

The configuration options for generating WebSocket auth headers

## Returns

`Promise`\<`Record`\<`string`, `string`>>

Object containing the authentication headers
