Closed Gildars closed 4 years ago
Hi, please make sure you request to Swoole Http Server, not FPM. Class swoole does not exist may be helpful.
@hhxsv5 Thank you! I just opened port 5200 in the workspace container.
Also sent all requests to http://mydomain.local: 5200/
Environment:
$fd = 1; // Find fd by userId from a map [userId=>fd]. /*@var \Swoole\WebSocket\Server $swoole / $swoole = app('swoole'); $success = $swoole->push($fd, 'Push data to fd#1 in Controller');