1. 首页
  2. 考试认证
  3. 其它
  4. PushablePusher PushablePusher添加了将事件从客户端推送到libPusher的功能

PushablePusher PushablePusher添加了将事件从客户端推送到libPusher的功能

上传者: 2024-09-08 19:08:17上传 ZIP文件 25.99KB 热度 6次
推杆PushablePusher提供了一项功能,可以将事件从客户端推送到公共频道,用于进行调试/开发目的(不用于生产用途)。由于Pusher不提供从客户端推送事件的能力,它直接请求他们的事件API。 PTPusher *client = [PTPusher pusherWithKey: kYOURPusherKey delegate: self encrypted: YES ]; [client pp_setAppID: kYOURPusherAppID key: kYOURPusherKey secretKey: kYOURPusherSecretKey ]; [client connect ]; [client pp_triggerEventNamed: @" some_event " toChannelNamed: @" some_channel " data: @
下载地址
用户评论