W3cubDocs

/Web APIs

PresentationConnection: close() method

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

Syntax

js

close()

Parameters

None.

Return value

None (undefined).

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
close 49 79 No No 36 No No 49 No 36 No 5.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/close