get(Producer::class); $producer->produce(new DemoProducer('test'. date('Y-m-d H:i:s'))); //$server->push($frame->fd, 'Recv: ' . $frame->data); } public function onClose($server, int $fd, int $reactorId): void { var_dump('closed'); } public function onOpen($server, Request $request): void { $server->push($request->fd, 'Opened'); } }