> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/variables/mc.connection.md).

# mc.connection

> `const` **connection**: [`ClientPacketListener`](/newgen/api/net/minecraft/client/multiplayer/clientpacketlistener.md)

Your connection to the server: the tab list and server details.

### Remarks

Null when not connected.
