Beispiel #1
0
/**
 * TODO: this implementation is not correct some error handling.
 */
function createServer(Closure $closure)
{
    $server = new HttpServer();
    $server->addListener($closure);
    return $server;
}