Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed May 8, 2024
1 parent 32af5f8 commit 8bf09be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Protocols/Pusher/MetricsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected function mergeChannels(array $metrics): array
protected function listenForMetrics(string $key): Deferred
{
dump('Listenting on '.$key);

$deferred = new Deferred;

$this->pubSubProvider->on('metrics-retrieved', function ($payload) use ($key, $deferred) {
Expand Down
2 changes: 2 additions & 0 deletions src/Servers/Reverb/Publishing/RedisPubSubProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function subscribe(): void
*/
public function on(string $event, callable $callback): void
{
dump('Listening from provider...');
$this->subscribingClient->on('message', function (string $channel, string $payload) use ($event, $callback) {
dump($payload);
$payload = json_decode($payload, associative: true, flags: JSON_THROW_ON_ERROR);
Expand All @@ -71,6 +72,7 @@ public function on(string $event, callable $callback): void
$callback($payload);
}
});
dump('Listening from provider...done');
}

/**
Expand Down

0 comments on commit 8bf09be

Please sign in to comment.