#

## Debugging Tools

## Subscribe

Topics to get updates for*
https://example.com/my-private-topic

One URI template or string per line (try the tester).

Use `*` to subscribe to all topics.

Examples:

Last Event ID
Not subscribed.

## Publish

Topics*
https://example.com/my-private-topic

First line: canonical IRI or string.
Next lines: alternate IRIs or strings.

Private
Data
Event ID
Event Type
Event Retry

## Settings

Hub URL*

Will be filled automatically if you discover a resource.

Authorization type
Authorization cookie `Authorization` HTTP Header

The authorization cookie will be set automatically by the server only if you discover a demo endpoint.

JWT

Required to publish, or to subscribe to private updates.
Claim structure to use:

    {
      "mercure": {
        "subscribe": ["list of topic selectors, * for all, omit for public only"],
        "publish": ["list of topic selectors, * for all, omit to not allow to publish"]
      }
    }

Create a token (demo key: `!ChangeThisMercureHubJWTSecretKey!`)

## Discover

Topic*

URL returning a `Link rel="mercure"` HTTP header to init the discovery.
Demo endpoints: any subpath of `/demo`.

Demo body

Data to return. Supported only by demo endpoints.

## Active subscriptions