Hi all,
I started a little website with OctoberCMS and so far I'm loving it. My next wish is to build a simple real time chat using Pusher. I signed up at Pusher and made sure everything was working by testing one of their tutorials. Next up I wish to integrate it in my plugin, I found and set the broadcasting properties for Pusher (config/broadcasting.php), but I don't know the right way to call the service in my plugin. Basically I'm looking to substitute the following code from the Pusher PHP example:
require('Pusher.php');
$pusher = new Pusher("APP_KEY", "APP_SECRET", "APP_ID");
$pusher->trigger('test_channel', 'my_event', array('message' => 'hello world') );
Last updated