国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

emit問題

zwc2004

一個(gè)workerStart中怎么實(shí)現(xiàn)多個(gè)emit呢,如下寫法并沒有生效。

$io = new SocketIO(3120);

$io->on('workerStart', function(){
    Timer::add(2, function() {
        global $io;
//        $componentLatest = shell_exec('cd ../index_web && php artisan componentLatest');
//        $io->emit('getComponentLatest', $componentLatest);
        $latest = shell_exec('cd ../index_web && php artisan latest');
        $io->emit('getLatest', $latest);
    });
});
2688 0 0
0個(gè)回答

年代過于久遠(yuǎn),無法發(fā)表回答
??