mxmbsocket/src/Ratchet/Component/MessageComponentInterface.php
Chris Boden e1c7ce361f App -> Component Refactoring
Updating namespacing and conventions as per ticket #1
2012-01-31 08:37:51 -05:00

14 lines
522 B
PHP

<?php
namespace Ratchet\Component;
use Ratchet\Resource\ConnectionInterface;
interface MessageComponentInterface extends ComponentInterface {
/**
* Triggered when a client sends data through the socket
* @param Ratchet\Resource\ConnectionInterface The socket/connection that sent the message to your application
* @param string The message received
* @return Ratchet\Resource\Command\CommandInterface|null
* @throws Exception
*/
function onMessage(ConnectionInterface $from, $msg);
}