PresentationConnectionCloseEvent

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.

Giao diện PresentationConnectionCloseEvent của Presentation API được kích hoạt trên một PresentationConnection khi nó bị đóng.

Event PresentationConnectionCloseEvent

Hàm khởi tạo

PresentationConnectionCloseEvent() Thử nghiệm

Tạo một PresentationConnectionCloseEvent mới.

Thuộc tính phiên bản

PresentationConnectionCloseEvent.message Read only Thử nghiệm

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.reason Read only Thử nghiệm

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ặc wentaway.

Thông số kỹ thuật

Thông số kỹ thuật
Presentation API
# interface-presentationconnectioncloseevent

Tương thích trình duyệt