Viewing File: /home/ubuntu/efiexchange-node-base/node_modules/fcm-node/lib/topic_options.js

function TopicOptions(host, path, method, serverKey) {
    this.topicOptions = {
        host,
        path,
        method,
        json: true,
        headers: { }
    };

    this.topicOptions.headers = {
        'Host': topicOptions.host,
        'Authorization': 'key=' + serverKey,
        'Content-Type': 'application/json',
        'Accept': 'application/json'
    };

    return topicOptions;
}

module.exports = TopicOptions;
Back to Directory File Manager