argument('ip'); $port = (int) $this->argument('port'); $message = $this->argument('message'); $client = new TcpSocketClient($ip, $port); try { $this->info("📤 發送中:{$message}"); $response = $client->send($message); $this->info("✅ 回應:{$response}"); } catch (\Exception $e) { $this->error("❌ 發送失敗:" . $e->getMessage()); } } }