Interface PushMessageData
interface PushMessageData {
arrayBuffer(): ArrayBuffer;
blob(): Blob;
bytes(): Uint8Array;
json(): any;
text(): string;
}
arrayBuffer(): ArrayBuffer;
blob(): Blob;
bytes(): Uint8Array;
json(): any;
text(): string;
}
Index
Methods
Methods
arrayBuffer
- arrayBuffer(): ArrayBuffer
Returns ArrayBuffer
blob
bytes
- bytes(): Uint8Array
Returns Uint8Array
This Push API interface provides methods which let you retrieve the push data sent by a server in various formats. Available only in secure contexts.
MDN Reference