From ab959115dc77c9ddfc1d969f18b1c04678f7a2d3 Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Wed, 8 May 2024 11:54:24 +0100 Subject: [PATCH] wip --- src/Protocols/Pusher/MetricsHandler.php | 2 ++ src/Servers/Reverb/Http/Server.php | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Protocols/Pusher/MetricsHandler.php b/src/Protocols/Pusher/MetricsHandler.php index a2cf7ee0..0057cec5 100644 --- a/src/Protocols/Pusher/MetricsHandler.php +++ b/src/Protocols/Pusher/MetricsHandler.php @@ -211,6 +211,8 @@ 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) { diff --git a/src/Servers/Reverb/Http/Server.php b/src/Servers/Reverb/Http/Server.php index 182a849f..e9a57957 100644 --- a/src/Servers/Reverb/Http/Server.php +++ b/src/Servers/Reverb/Http/Server.php @@ -62,6 +62,7 @@ protected function handleRequest(string $message, Connection $connection): void $this->close($connection, $e->getStatusCode(), $e->getMessage()); } catch (Throwable $e) { Log::error($e->getMessage()); + dd($e); $this->close($connection, 500, 'Internal server error.'); } }