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 anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.
When aPresentationConnection object is created, itsbinaryType IDL attributeMUST be set to the string"arraybuffer". Upon getting, the attributeMUST return its most recent value (the value it was last set as). Upon setting, the user agentMUST set the IDL attribute to the new value.
Note:ThebinaryType attribute allows authors to control how binary data is exposed to scripts. By setting the attribute to"blob", binary data is returned inBlob form; by setting it to"arraybuffer", it is returned inArrayBuffer form. The attribute defaults to"arraybuffer". This attribute has no effect on data sent in a string form.
In this article
Specifications
| Specification |
|---|
| Presentation API> # dom-presentationconnection-binarytype> |