Updated Docs

This commit is contained in:
Chris Boden 2011-11-10 22:45:18 -05:00
parent 32d9dda703
commit d9283d9593
2 changed files with 10 additions and 0 deletions

View File

@ -82,6 +82,9 @@ class Socket implements SocketInterface {
return $num;
}
/**
* @todo Do loop to make sure entire buffer is sent to client
*/
public function write($buffer, $length = 0) {
return $this->__call('write', array($buffer, $length));
}

View File

@ -30,5 +30,12 @@ interface SocketObserver {
*/
function onClose(SocketInterface $conn);
/**
* If there is an error with one of the sockets, or somewhere in the application where an Exception is thrown,
* the Exception is sent back down the stack, handled by the Server and bubbled back up the application through this method
* @param SocketInterface
* @param \Exception
* @return Ratchet\Command\CommandInterface|null
*/
function onError(SocketInterface $conn, \Exception $e);
}