rfc6455/Version/Hixie76/Connection.php
Grégoire Pineau c1754d302c CS (eof_ending)
2014-03-21 16:46:43 +01:00

20 lines
413 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();
}
}