mxmbsocket/tests/Ratchet/Tests/AbFuzzyServer.php
Chris Boden ff07104316 AutobahnTestSuite
Added files to test Ratchet against the AutobahnTestSuite
Bumped version v0.2b
Updated how to handle control frames to run the test suite
2012-05-20 13:24:37 -04:00

22 lines
531 B
PHP

<?php
namespace Ratchet\Tests;
use Ratchet\MessageComponentInterface;
use Ratchet\ConnectionInterface;
class AbFuzzyServer implements MessageComponentInterface {
public function onOpen(ConnectionInterface $conn) {
}
public function onMessage(ConnectionInterface $from, $msg) {
$from->send($msg);
}
public function onClose(ConnectionInterface $conn) {
}
public function onError(ConnectionInterface $conn, \Exception $e) {
echo $e->getMessage() . "\n";
$conn->close();
}
}