PushablePusher PushablePusher添加了将事件从客户端推送到libPusher的功能
推杆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: @
下载地址
用户评论