Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 257 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 257 Bytes
use phuongaz\apiserve\Loader as APIServe;

APIServe::registerHandle('ping', function(UDPSocket $socket, Connection $connection): void {
        $data = new TransferData("pong", "Hello client!");
        $connection->reply($data);
});