Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 7f6b8fa

Browse files
committed
Fixed health handler
1 parent 9c19546 commit 7f6b8fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Server/HealthHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
use GuzzleHttp\Psr7\Response;
77
use Psr\Http\Message\RequestInterface;
88
use Ratchet\ConnectionInterface;
9-
use Ratchet\RFC6455\Messaging\MessageInterface;
10-
use Ratchet\WebSocket\MessageComponentInterface;
9+
use Ratchet\Http\HttpServerInterface;
1110

12-
class HealthHandler implements MessageComponentInterface
11+
class HealthHandler implements HttpServerInterface
1312
{
1413
/**
1514
* Handle the socket opening.
1615
*
1716
* @param \Ratchet\ConnectionInterface $connection
17+
* @param \Psr\Http\Message\RequestInterface $request
1818
* @return void
1919
*/
2020
public function onOpen(ConnectionInterface $connection, RequestInterface $request = null)
@@ -32,10 +32,10 @@ public function onOpen(ConnectionInterface $connection, RequestInterface $reques
3232
* Handle the incoming message.
3333
*
3434
* @param \Ratchet\ConnectionInterface $connection
35-
* @param \Ratchet\RFC6455\Messaging\MessageInterface $message
35+
* @param string $message
3636
* @return void
3737
*/
38-
public function onMessage(ConnectionInterface $connection, MessageInterface $message)
38+
public function onMessage(ConnectionInterface $connection, $message)
3939
{
4040
//
4141
}

0 commit comments

Comments
 (0)