2024-03-10 02:06:19 +00:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
use NoccyLabs\Mercureact\Configuration;
|
|
|
|
use NoccyLabs\Mercureact\Daemon;
|
|
|
|
|
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
|
|
|
|
$config = Configuration::createDefault()
|
2024-03-11 00:05:09 +00:00
|
|
|
->setAllowAnonymousSubscribe(true)
|
2024-03-10 02:06:19 +00:00
|
|
|
->setJwtSecret("!ChangeThisMercureHubJWTSecretKey!");
|
|
|
|
|
|
|
|
$daemon = new Daemon($config);
|
|
|
|
$daemon->start();
|