diff --git a/src/Ratchet/Socket.php b/src/Ratchet/Socket.php index 6aa8443..c360dc9 100644 --- a/src/Ratchet/Socket.php +++ b/src/Ratchet/Socket.php @@ -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 @@ -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);