From a4449011692ac4bdcad328fb0c05bdf33fd65d0b Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Tue, 19 Mar 2024 16:52:19 +0100 Subject: [PATCH] wip: 2024-03-19T16:51:47+0100 (1710863507) --- client | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 client diff --git a/client b/client deleted file mode 100644 index a8f22d7..0000000 --- a/client +++ /dev/null @@ -1,32 +0,0 @@ - 4) { - $arglen = $argc - 1; - exit("Expected 3 to 4 arguments (got ${arglen}): [payload]\n"); - } - - // Connect to the socket server - $client = new Client($argv[1], null, Connection::AF_UNIX); - - // Get endpoint, method, and optional payload - $args = $argv; - array_shift($args); - array_shift($args); - - // Restore enum from argument - $args[1] = Method::from(strtoupper($args[1])); - - // Call endpoint and echo result - $call = $client->call(...$args); - echo json_encode($call) . "\n"; \ No newline at end of file