#!/usr/bin/env php setListenAddress('127.0.0.1:8888') ->setAllowOriginHeader("*") ->setContentSecurityPolicyHeader("default-src * 'self' http: 'unsafe-eval' 'unsafe-inline'; connect-src * 'self'") ->setAllowAnonymousSubscribe(true) ->setJwtSecret("!ChangeThisMercureHubJWTSecretKey!"); } $daemon = new Daemon($config); $daemon->start();