2

我想知道它是否能够从多个推送渠道导入数据。

对于您使用的一个频道,var channel = pusher.subscribe('channel_name'); 我已经尝试过var channel = pusher.subscribe('channel1','channel2');,但这似乎不起作用。

浏览文档,我对此一无所知。任何帮助将不胜感激!

4

1 回答 1

4

You have to subscribe to each channel individually e.g.

var channel1 = pusher.subscribe( 'channel1' );
var channel2 = pusher.subscribe( 'channel2' );
于 2013-06-19T22:38:14.150 回答