Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from nikazooz/fix/message-component-interface-…
Browse files Browse the repository at this point in the history
…signature

Fix method signature to comply with the interface implemented by the class
  • Loading branch information
mpociot authored Dec 13, 2018
2 parents d8f1d5e + b76f39c commit d8a4a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ratchet/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Ratchet\ConnectionInterface;
use Symfony\Component\Process\Process;
use Ratchet\RFC6455\Messaging\MessageInterface;
use Ratchet\WebSocket\MessageComponentInterface;

class Socket implements MessageComponentInterface
Expand All @@ -15,7 +16,7 @@ public function onOpen(ConnectionInterface $connection)
self::$connections[] = $connection;
}

public function onMessage(ConnectionInterface $from, $msg)
public function onMessage(ConnectionInterface $from, MessageInterface $msg)
{
$data = json_decode($msg);

Expand Down

0 comments on commit d8a4a66

Please sign in to comment.