💾 Archived View for yggverse.cities.yesterweb.org › nps › nps-php › 1.1.0.gmi captured on 2024-05-10 at 10:42:16. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Server API changed with new features
Constructor receive line and size arguments, where the class contain new setters:
Handler function return success status as the new argument
$server = new \Yggverse\Nps\Server; $server->start( function ( bool $success, string $content, string $request, string $connect ) { printf( 'connection: %s request: %s', $connect, $request ); if ($success) { var_dump( $content ); } } );