mxmbsocket/lib/Ratchet/Command/CommandInterface.php
Chris Boden d880d29729 Refactoring
Refactored Command/Composite pattern, now as expected
Server recursively executes commands
Above changes fixed issues of server/client not being notified on forced disconnects
2011-11-07 16:02:01 -05:00

14 lines
345 B
PHP

<?php
namespace Ratchet\Command;
use Ratchet\SocketObserver;
/**
* Socket implementation of the Command Pattern
* User created applications are to return a Command to the server for execution
*/
interface CommandInterface {
/**
* The Server class will call the execution
*/
function execute(SocketObserver $scope = null);
}