PresentationConnectionCloseEvent
Limited availability
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.
Giao diện PresentationConnectionCloseEvent của Presentation API được kích hoạt trên một PresentationConnection khi nó bị đóng.
Hàm khởi tạo
PresentationConnectionCloseEvent()Experimental-
Tạo một PresentationConnectionCloseEvent mới.
Thuộc tính phiên bản
PresentationConnectionCloseEvent.messageRead only Experimental-
Một thông báo có thể đọc được của con người cung cấp thêm thông tin về lý do tại sao kết nối bị đóng.
PresentationConnectionCloseEvent.reasonRead only Experimental-
Cho biết tại sao kết nối bị đóng. Thuộc tính này nhận một trong các giá trị sau:
error,closed, hoặcwentaway.
Thông số kỹ thuật
| Specification |
|---|
| Presentation API> # interface-presentationconnectioncloseevent> |