#!/usr/bin/env php addListener([ 'address' => '127.0.0.1:8888', 'subscribe' => [ 'anonymous' => true ] ]) ->setAllowAnonymousSubscribe(true) ->setJwtSecret("!ChangeThisMercureHubJWTSecretKey!"); } if (count($config->getListeners()) == 0) { fwrite(STDERR, "No listeners available\n"); exit(1); } $daemon = new Daemon($config); $daemon->start();