Back to Content

PresentationConnection: close() method

files/en-us/web/api/presentationconnection/close/index.md

latest492 B
Original Source

{{APIRef("Presentation API")}}{{SeeCompatTable}}{{SecureContext_Header}}

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.

Syntax

js-nolint
close()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}