rfc6455/Version/Hixie76/Connection.php
Chris Boden 0be4299fd6 Docs
2013-03-31 11:44:10 -04:00

19 lines
412 B
PHP

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