From 7f6b8fa2c8a207ef1bfed8ceb249511346dcbc8a Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 18 Sep 2020 16:18:58 +0300 Subject: [PATCH] Fixed health handler --- src/Server/HealthHandler.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Server/HealthHandler.php b/src/Server/HealthHandler.php index 75fa90f..73186c4 100644 --- a/src/Server/HealthHandler.php +++ b/src/Server/HealthHandler.php @@ -6,15 +6,15 @@ use Exception; use GuzzleHttp\Psr7\Response; use Psr\Http\Message\RequestInterface; use Ratchet\ConnectionInterface; -use Ratchet\RFC6455\Messaging\MessageInterface; -use Ratchet\WebSocket\MessageComponentInterface; +use Ratchet\Http\HttpServerInterface; -class HealthHandler implements MessageComponentInterface +class HealthHandler implements HttpServerInterface { /** * Handle the socket opening. * * @param \Ratchet\ConnectionInterface $connection + * @param \Psr\Http\Message\RequestInterface $request * @return void */ public function onOpen(ConnectionInterface $connection, RequestInterface $request = null) @@ -32,10 +32,10 @@ class HealthHandler implements MessageComponentInterface * Handle the incoming message. * * @param \Ratchet\ConnectionInterface $connection - * @param \Ratchet\RFC6455\Messaging\MessageInterface $message + * @param string $message * @return void */ - public function onMessage(ConnectionInterface $connection, MessageInterface $message) + public function onMessage(ConnectionInterface $connection, $message) { // }