PresentationConnection: send() method

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.

Phương thức send() của giao diện PresentationConnection yêu cầu ngữ cảnh duyệt web điều khiển gửi dữ liệu nhị phân hoặc văn bản đến ngữ cảnh duyệt web đang trình bày.

Cú pháp

js
send(data)

Tham số

data

Dữ liệu cần gửi đến ngữ cảnh trình bày. Đây sẽ là một trong các kiểu:

Giá trị trả về

Không có (undefined).

Thông số kỹ thuật

Specification
Presentation API
# dom-presentationconnection-send

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