---
sidebar_label: CDPSession.connection
---

# CDPSession.connection() method

The underlying connection for this session, if any.

### Signature

```typescript
class CDPSession {
  abstract connection(): Connection | undefined;
}
```

**Returns:**

[Connection](./puppeteer.connection.md) \| undefined
