Implemented subscription logic
This commit is contained in:
@ -102,7 +102,7 @@ ApiHandler::$indexPage = <<<ENDHTML
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
const events = new EventSource("http://127.0.0.1:9000/.well-known/mercure");
|
||||
const events = new EventSource("http://127.0.0.1:9000/.well-known/mercure?topic=https://example.com/books/1");
|
||||
events.onmessage = msg => console.log(msg);
|
||||
</script>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user