mxmbsocket/lib/Ratchet/Command/CloseConnection.php
Chris Boden 51d0516aa3 Cleanup
Application stack working!
Existing unit tests fixed
Implemented HyBi-10 unframing
2011-10-28 14:12:39 -04:00

15 lines
312 B
PHP

<?php
namespace Ratchet\Command;
use Ratchet\SocketCollection;
class CloseConnection implements CommandInterface {
protected $_sockets;
public function __construct(SocketCollection $sockets) {
$this->_sockets = $sockets;
}
function execute() {
$this->_sockets->close();
}
}