__construct() public method

Initializes a new Pusher instance with key, secret , app ID and channel. You can optionally turn on debugging for all requests by setting debug to true.
public __construct ( string $auth_key, string $secret, integer $app_id, boolean $options = [], string $host = null, integer $port = null, integer $timeout = null )
$auth_key string
$secret string
$app_id integer
$options boolean [optional] Options to configure the Pusher instance. Was previously a debug flag. Legacy support for this exists if a boolean is passed. scheme - e.g. http or https host - the host e.g. api.pusherapp.com. No trailing forward slash. port - the http port timeout - the http timeout encrypted - quick option to use scheme of https and port 443. cluster - cluster name to connect to. notification_host - host to connect to for native notifications. notification_scheme - scheme for the notification_host.
$host string [optional] - deprecated
$port integer [optional] - deprecated
$timeout integer [optional] - deprecated
Beispiel #1
0
 public function __construct()
 {
     parent::__construct(PusherUtil::APP_KEY, PusherUtil::APP_SECRET, PusherUtil::APP_ID);
 }