0

我正在尝试使用 pusher 触发事件但返回错误。我可以听,但是当我尝试触发时不起作用,这就是我的尝试:

const channel = pusherClient.subscribe('channel');

channel.trigger('event', {
   name: 'John',
   age: 20
});
4

1 回答 1

1

Have you enabled client-side triggering? Is a setting you found on Pusher admin page.

于 2019-07-31T10:56:17.150 回答