Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

1.1.0

Compare
Choose a tag to compare
@d47081 d47081 released this 25 Apr 04:02
· 12 commits to main since this release

Server API changed with new features

Now constructor accepts line and size arguments, where the class contain new setters:

Handler function returns success status as the new argument

Example

$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
            );
        }
    }
);

Full Changelog: 1.0.0...1.1.0