You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useWorkerman\Worker;
usePHPSocketIO\SocketIO;
require_once'vendor/autoload.php';
$channel = newChannel\Server();
$io = newSocketIO(2022);
$io->on('workerStart', function()use($io){
$io->adapter('\PHPSocketIO\ChannelAdapter');
});
$io->of('/one')->on('connection', function ($socket) use ($io) {
// ...
});
$io->of('/two')->on('connection', function ($socket) use ($io) {
// ...
});
Worker::runAll();
```php
i'm using an emitter php script to emit events to clients connected to /one or /two namespaces
it's working for namespace '/two' connected users ;but not for'/one'and i get this error :
"ignore different namespace /one != /two"
The text was updated successfully, but these errors were encountered:
i have a php script
myserver.php :
The text was updated successfully, but these errors were encountered: