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

1.2.0

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

Implemented optional Server response returned by custom handler

$server->start(
    function (
          bool $success,
        string $content,
        string $request,
        string $connect
    ): ?string
    {
        printf(
            'connection: %s request: %s',
            $connect,
            $request
        );

        if ($success)
        {
            var_dump(
                $content
            );
        }

        return 'thank you!'; // null|string response
    }
);

Full Changelog: 1.1.0...1.2.0