PresentationConnection: binaryType property
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.
When a PresentationConnection
object is created, its binaryType
IDL attribute MUST be set to the string "arraybuffer"
. Upon getting, the attribute MUST return its most recent value (the value it was last set as). Upon setting, the user agent MUST set the IDL attribute to the new value.
Note: The binaryType
attribute allows authors to control how binary data is exposed to scripts. By setting the attribute to "blob"
, binary data is returned in Blob
form; by setting it to "arraybuffer"
, it is returned in ArrayBuffer
form. The attribute defaults to "arraybuffer"
. This attribute has no effect on data sent in a string form.
Specifications
Specification |
---|
Presentation API # dom-presentationconnection-binarytype |
Browser compatibility
BCD tables only load in the browser