Node JS - Pusher触发器无法正常工作

时间:2018-06-02 11:25:24

标签: node.js triggers pusher

触发器功能在Node JS中不起作用。

我在调试控制台中看不到Pusher正在接收数据的任何内容。

var Pusher = require('pusher');
var pusher = new Pusher({
    appId: 'test',
    key: 'test',
    secret: 'test',
    cluster: 'mt1',
    encrypted: true
});

pusher.trigger(userId, 'Admin-Email', {
     message: 'test'
});

0 个答案:

没有答案