Comments (5)
Thanks for your quick response! It appeared I did not have the socket PHP extension enabled in my setup. Apparently on my laptop PHP runs different versions on console and web.
from notifier.
I released new version this night. Please migrate to it. Read readme. Thanks
from notifier.
<?php
namespace App\Parser;
use Facebook\WebDriver\Chrome\ChromeOptions;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\WebDriverBy;
use MatviiB\Notifier\Events\Notify;
use Symfony\Component\DomCrawler\Crawler;
class MannFilterDriver {
...
public function __construct($url) {
...
$this->driverVisitPage();
$this->driverSetSourcePage();
$this->productDirectoryName();
}
...
private function driverVisitPage() {
$this->driver->get($this->url);
$this->driverWait('className', 'inTabContent');
$this->createCrawler($this->source_page);
}
private function driverWait($method, $identification, $count = 0) {
$this->driver->wait()->until(
function () use ($method, $identification, $count) {
$elements = $this->driver->findElements(WebDriverBy::$method($identification));
$message = date('Y-m-d H:i:s')." | Ожидание | [{$identification}] Найдено: ".count($elements);
event(new Notify(['message' => $message], '/admin/mann_filter/job'));
return count($elements) > $count;
}
);
$this->driverSetSourcePage();
}
....
}
from notifier.
I can't find the solution in the README. I'm having the same issue calling the event from my controller.
from notifier.
@Wiejeben what Laravel version do you have?
from notifier.
Related Issues (11)
- Send Notification to some users by ID HOT 2
- Support for different internal socket host HOT 6
- Popup notify example HOT 3
- HTML component with live text HOT 2
- Disable receiving data with "message" key and "test" value HOT 3
- Installation issue ! HOT 1
- Usage issues ! HOT 15
- Suggestion: Send to predefined users ID HOT 8
- Error Supervisor to run notifier:init HOT 2
- Initialize the connection on all pages of the admin panel. HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notifier.