mxmbsocket/tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php
Chris Boden 0c55aa6bef Test cleanup
Added the AutobahnTestSuite Fuzzing Server to AB tests
giving another language (Python) to compare Ratchet to
Added a profile option for make
Cleaned up the tests directory structure
2012-07-13 19:53:18 -04:00

13 lines
369 B
PHP

<?php
require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
$loop = new React\EventLoop\LibEventLoop;
$sock = new React\Socket\Server($loop);
$app = new Ratchet\WebSocket\WsServer(new Ratchet\Tests\AbFuzzyServer);
$sock->listen(8000, '0.0.0.0');
$server = new Ratchet\Server\IoServer($app, $sock, $loop);
$server->run();