---
title: PresentationConnection.close()
slug: Web/API/PresentationConnection/close
tags:
  - API
  - Method
  - NeedsBrowserCompatibility
  - NeedsContent
  - NeedsMarkupWork
  - Presentation
  - PresentationConnection
  - Reference
browser-compat: api.PresentationConnection.close
---
{{APIRef("Presentation API")}}

When the `close()` method is called on a {{domxref("PresentationConnection")}}, the {{Glossary("user agent")}} begins the process of closing the connection by sending an empty `closeMessage` with the `closeReason` set to `closed`.

## Browser compatibility

{{Compat}}
