【发布时间】:2018-07-04 14:55:23
【问题描述】:
javascribe 订阅频道如下所示。频道订阅正确。
var pusher = new Pusher('Appkey', { cluster: 'ap2'});
var channel = pusher.subscribe('publisher-token-from-javascript');
触发事件的方法
$pusher = new Pusher('$key', '$secret', '$id', $options);
$response = $pusher->trigger('my-channel0000', 'my-event', array('message' => 'hello world'));
推送代码总是返回 null 作为响应
array (size=2)
'body' => boolean false
'status' => int 0
【问题讨论】:
标签: php codeigniter pusher