Skip to content

Conversation

ylebre
Copy link
Member

@ylebre ylebre commented Apr 14, 2025

No description provided.

@ylebre ylebre requested a review from Potherca April 14, 2025 09:18
Copy link
Member

@Potherca Potherca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

No functional problems. Have some questions, but they don't need to be resolved for this to be merged (i.e. can always be resolved later, if needed).

) {
// Store the new connection in $this->clients
$this->clients[$connection->getRemoteName()] = $connection;
echo "> [{$connection->getRemoteName()}] Client connected {$request->getUri()}\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the sake of readability, it might be worth using printf instead of echo. Consider:

vprintf("> [%s] Client connected %s\n", [
    $connection->getRemoteName(),
    $request->getUri(),
]);

);

$server->run();
$server = new SolidPubSub($options);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some later point we might want to split the config, class, and call, but until we start adding unit-tests, I don't think it is worth the effort (yet).

@ylebre ylebre merged commit bdf0dd2 into main Apr 23, 2025
20 checks passed
@ylebre ylebre deleted the feature/wss branch April 23, 2025 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants