rfc6455/Version/Hixie76/Connection.php
Chris Boden 491919f7dc [WebSocket] Connection API
All implementations of ConnectionInterface return themselves
2012-07-22 20:05:04 -04:00

18 lines
378 B
PHP

<?php
namespace Ratchet\WebSocket\Version\Hixie76;
use Ratchet\AbstractConnectionDecorator;
/**
* {@inheritdoc}
*/
class Connection extends AbstractConnectionDecorator {
public function send($msg) {
$this->getConnection()->send(chr(0) . $msg . chr(255));
return $this;
}
public function close() {
$this->getConnection()->close();
}
}