Skip to content

Commit

Permalink
Add links to the URI template tester
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Feb 5, 2019
1 parent 6b0065c commit aab1dc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down Expand Up @@ -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?

Expand Down
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit aab1dc3

Please sign in to comment.