Nahid\Talk\Live\Broadcast::connectPusher PHP Метод

connectPusher() защищенный Метод

protected connectPusher ( $options = [] )
    protected function connectPusher($options = [])
    {
        if ($this->getConfig('broadcast.enable')) {
            $appId = $this->getConfig('broadcast.pusher.app_id');
            $appKey = $this->getConfig('broadcast.pusher.app_key');
            $appSecret = $this->getConfig('broadcast.pusher.app_secret');
            $newOptions = array_merge($this->options, $options);
            $pusher = new Pusher($appKey, $appSecret, $appId, $newOptions);
            return $pusher;
        }
        return false;
    }