use Workerman\Worker;
use PHPSocketIO\SocketIO;
require_once 'vendor/autoload.php';
$channel = new Channel\Server();
$io = new SocketIO(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"
i have a php script
myserver.php :