org.scalajs.dom
The PushMessageData interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
Unlike the similar methods in the Fetch API, which only allow the method to be invoked once, these methods can be called multiple times.
Extracts the data as an ArrayBuffer object.
Extracts the data as a Blob object.
Extracts the data as a JSON object.
Extracts the data as a plain text string.
The PushMessageData interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
Unlike the similar methods in the Fetch API, which only allow the method to be invoked once, these methods can be called multiple times.