
Created parent interface for messages and frames Created Hixie Connection Applied updated interfaces to Hixie versions Removed __toString on msgs/frames since there could be 2-3 types returned
16 lines
369 B
PHP
16 lines
369 B
PHP
<?php
|
|
namespace Ratchet\WebSocket\Version\Hixie76;
|
|
use Ratchet\AbstractConnectionDecorator;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
class Connection extends AbstractConnectionDecorator {
|
|
public function send($msg) {
|
|
return $this->getConnection()->send(chr(0) . $msg . chr(255));
|
|
}
|
|
|
|
public function close() {
|
|
return $this->getConnection()->close();
|
|
}
|
|
} |