File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,17 @@ clients.
68
68
An official and open source (AGPL) implementation of a Hub can be downloaded
69
69
as a static binary from `Mercure.rocks `_.
70
70
71
- Run the following command to start it:
71
+ On Linux and Mac, run the following command to start it:
72
72
73
73
.. code-block :: terminal
74
74
75
- $ ./mercure --jwt-key='!ChangeMe!' --addr='localhost:3000' --allow-anonymous --cors-allowed-origins='*'
75
+ SERVER_NAME=:3000 MERCURE_PUBLISHER_JWT_KEY="!ChangeMe!" MERCURE_SUBSCRIBER_JWT_KEY="!ChangeMe!" ./mercure run -config Caddyfile.dev
76
+
77
+ On Windows run:
78
+
79
+ .. code-block :: terminal
80
+
81
+ $envSERVER_NAME=':3000'; $env:MERCURE_PUBLISHER_JWT_KEY='!ChangeMe!'; $env:MERCURE_SUBSCRIBER_JWT_KEY='!ChangeMe!'; .\mercure.exe run -config Caddyfile.dev
76
82
77
83
.. note ::
78
84
@@ -175,8 +181,8 @@ the **topic** being updated. This topic should be an `IRI`_
175
181
of the resource being dispatched.
176
182
177
183
Usually, this parameter contains the original URL of the resource
178
- transmitted to the client, but it can be any valid `IRI `_, it doesn't
179
- have to be a URL that exists (similarly to XML namespaces).
184
+ transmitted to the client, but it can be any string or `IRI `_,
185
+ and it doesn't have to be a URL that exists (similarly to XML namespaces).
180
186
181
187
The second parameter of the constructor is the content of the update.
182
188
It can be anything, stored in any format.
You can’t perform that action at this time.
0 commit comments