Interface PushMessageData

    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

    interface PushMessageData {
        arrayBuffer(): ArrayBuffer;
        blob(): Blob;
        json(): any;
        text(): string;
    }

    Methods