workerman
workerman copied to clipboard
An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
Hi, Walkor Please read: https://externals.io/message/121248#122168 From what I understand, we can use the stream from the event lib. But you know it better, to clarify if it's possible. Not only...
At some situation i need add Timer at master process, but it look like imposible because master have `monitorWorkersForLinux` method with `pcntl_wait` function what will be block master process until...
Fixed issue with child process having custom handlers. When signal is called with child process `PID`, it cancels the sleep but handlers wont be called. Improved default select with `stream_select`...
这边 参照大佬写的 workerman4.1 Websocket permessage-deflate 压缩传输 把4.0支持 Websocket permessage-deflate 压缩传输 已经经过海外百万用户 浏览器市场稳定运行 用于开源 回馈于开源 define('WORKERMAN_WEBSOCKET_DEFLATE',true) ;#开启自动压缩 如果开关方法不适用可以改改
Hello, If a client sends "ping" request to workerman websocket worker, wrokerman auto replies with "pong" but I cannot catch that ping request at onMessage. Any idea how to intercept...
修复 gateway-worker 项目中 Gateway::closeClient($client_id, (array) $message); 会导致 网关进程报错退出的问题: ~~~ 2023-03-08 17:50:28 pid:19154 Workerman[/home/myweb/spug_repos/gatewayworker_test/23_20230308175027/Applications/AdvertApp/start_g.php] already running 2023-03-09 10:46:19 pid:1361 Exception: You can't send(array) to client, you need to convert it to...
Is there a way on the client side to transfer user_id (user ID registered on the site) and referrer (address of the page from which the connection was made) to...
I have this example ``` $this->worker = new Worker('websocket://0.0.0.0:8090', $this->context); $this->worker->name = 'websocket'; $this->worker->count = 1; $this->worker->transport = 'ssl'; $this->worker->onConnect = function($connection) { $connection->onWebSocketConnect = function ($connection, $request) { $connection->send($request);...
To prevent confusions, with the message. Example: ![image](https://user-images.githubusercontent.com/249085/208655007-6c86d574-0294-4149-a58a-74b9242003d6.png) Looks like the error is: Missing Config FileWorker. With the change. App message |> Worker message `Missing Config File |> Worker[1084] process...
Hi, I have seen that in other frameworks, in reality is the base of async. `Timer::add(0, $func, $vars, false);` Theoretically this task will be included to schedule in the event...