Pusher is a hosted API for quickly, easily and securely adding scalable realtime functionality to web and mobile apps.
Requirements ¶
Tested on Yii 1.1.10
Usage ¶
- Sign up to Pusher.com.
- Extract the downloaded file, copy Pusher.php to your components application directory.
- Add & adjust your config/main.php components and test it.
// Configuration
'pusher'=>array(
'class'=>'Pusher',
'key'=>'{Your Pusher key}',
'secret'=>'{Your Pusher secret}',
'appId'=>'{Your application ID}',
),
// Controller
$pusher=Yii::app()->pusher;
$pusher->trigger('messaging','newMessage',array('msg'=>'Ular melingkar dipagar bundar'));
Nice
I want to use the chart example on pusher website can you give the head start. Thanks.
Presence Channels
Thank you for this component, could you give an example about how to implement a Presence Channel Subscription with this component?
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.