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');
            $appOptions = $this->getConfig('broadcast.pusher.options');

            $newOptions = array_merge($appOptions, $options);
            $pusher = new Pusher($appKey, $appSecret, $appId, $newOptions);

            return $pusher;
        }

        return false;
    }
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');
            $appOptions = $this->getConfig('broadcast.pusher.options');

            $newOptions = array_merge($appOptions, $options);
            $pusher = new Pusher($appKey, $appSecret, $appId, $newOptions);

            return $pusher;
        }

        return false;
    }
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' ) ; $ appOptions = $ this -> getConfig ( 'broadcast.pusher.options' ) ; $ newOptions = array_merge ( $ appOptions , $ options ) ; $ pusher = new Pusher ( $ appKey , $ appSecret , $ appId , $ newOptions ) ; return $ pusher ; } return false ; }
Make pusher connection.

@param array $options

@return object | bool
Make pusher connection .