PresentationConnection: close() method
Khả dụng hạn chế
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Khi phương thức close() được gọi trên một PresentationConnection, user agent bắt đầu quá trình đóng kết nối bằng cách gửi một closeMessage rỗng với closeReason được đặt thành closed.
Cú pháp
js
close()
Tham số
Không có.
Giá trị trả về
Không có (undefined).
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Presentation API> # dom-presentationconnection-close> |