Permalink
Browse files

Add links to the URI template tester

  • Loading branch information...
dunglas committed Feb 5, 2019
1 parent 6b0065c commit aab1dc3f01ed2034adb5a46b9da8b104e4ccd955
Showing with 7 additions and 3 deletions.
  1. +5 −1 README.md
  2. +2 −2 public/index.html
@@ -236,6 +236,10 @@ If not, an HTTP server will be started (**not secure**).

For both the `publish` and `subscribe` properties, the array can be empty to publish only public updates, or set it to `["*"]` to allow accessing to all targets.

#### URI Template and Topics

Try [our URI template tester](https://uri-template-tester.mercure.rocks/) to ensure that the template matches the topic.

## FAQ

### How to Use Mercure with GraphQL?
@@ -289,7 +293,7 @@ Basically, in most cases Mercure can be used as a modern and easier to use repla

Mercure has been heavily inspired by WebSub, and we tried to make the protocol as close as possible from the WebSub one.

Mercure uses Server-Sent Events to dispatch the updates, while WebSub use `POST` requests. Also, Mercure has an advanced authorization mechanism, and allows to subscribe to several topics with only one connection using templated URIs.
Mercure uses Server-Sent Events to dispatch the updates, while WebSub use `POST` requests. Also, Mercure has an advanced authorization mechanism, and allows to subscribe to several topics with only one connection using URI templates.

### What's the Difference Between Mercure and Web Push?

@@ -115,9 +115,9 @@ <h1 class="title is-2">Subscribe</h1>
</div>

<p class="help">
One <a href="https://tools.ietf.org/html/rfc6570">URI template</a> per line.<br>
One <a href="https://tools.ietf.org/html/rfc6570">URI template</a> per line (<a href="https://uri-template-tester.mercure.rocks/">try the tester</a>).<br>
Examples:
<pre><code id="subscribeTopicsExamples"></code></pre>
<pre><code id="subscribeTopicsExamples"></code></pre><br>
</p>
</div>

0 comments on commit aab1dc3

Please sign in to comment.