mxmbsocket/src/Ratchet/MessageInterface.php
2013-01-04 19:52:57 -05:00

12 lines
365 B
PHP

<?php
namespace Ratchet;
interface MessageInterface {
/**
* Triggered when a client sends data through the socket
* @param \Ratchet\ConnectionInterface The socket/connection that sent the message to your application
* @param string The message received
* @throws \Exception
*/
function onMessage(ConnectionInterface $from, $msg);
}