main
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
require 'pusher/pusher-http-php-master/lib/Pusher.php';
|
||||
|
||||
$options = [
|
||||
'cluster' => 'your_cluster',
|
||||
'useTLS' => true
|
||||
];
|
||||
$pusher = new Pusher\Pusher(
|
||||
'your_app_key',
|
||||
'your_app_secret',
|
||||
'your_app_id',
|
||||
$options
|
||||
);
|
||||
|
||||
$data['message'] = 'hello world';
|
||||
$pusher->trigger('my-channel', 'my-event', $data);
|
||||
Reference in New Issue
Block a user