Closed binemmanuel closed 2 years ago
Do you mean it works fine when you switch to non daemon mode?
It doesn't work at all on daemon mode though everything looks fine without daemon and I've been wondering if it has a thing to do with the version I'm using on the client.
Do not initialize the database connection before the Worker::runAll()
runs. Please initialize the database connection in workerStart like this.
$io = new SocketIO(9120);
$io->on('workerStart', function()use($io) {
// Init your database connection here.
});
Instantiating the database connection on workerStart fixed my problem, I appreciate the help.
On daemon mode connections to the server is successfully made but no communications are made though when I check the status I notice that requests are made but nothing gets to the app.
I've got PHP 8.0.13 with 10.3.32-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.0 and I'm trying to connect from a mobile built with Flutter.