Skip to content

Commit fdc4677

Browse files
committed
Correct spelling & grammar in 4.4 mercure.rst
1 parent 62c0653 commit fdc4677

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mercure.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ out of the box in most modern browsers (old versions of Edge and IE require
2727
languages.
2828

2929
Mercure comes with an authorization mechanism,
30-
automatic re-connection in case of network issues
30+
automatic reconnection in case of network issues
3131
with retrieving of lost updates, a presence API,
3232
"connection-less" push for smartphones and auto-discoverability (a supported
3333
client can automatically discover and subscribe to updates of a given resource
@@ -84,7 +84,7 @@ and a managed, High Availability Hub are also provided.
8484
Configuration
8585
-------------
8686

87-
The preferred way to configure the MercureBundle is using
87+
The preferred way to configure MercureBundle is using
8888
:doc:`environment variables </configuration>`.
8989

9090
When MercureBundle has been installed, the ``.env`` file of your project
@@ -97,7 +97,7 @@ and you can skip straight to the next section.
9797
Otherwise, set the URL of your hub as the value of the ``MERCURE_URL``
9898
and ``MERCURE_PUBLIC_URL`` env vars.
9999
Sometimes a different URL must be called by the Symfony app (usually to publish),
100-
and the JavaScript client (usually to subscrribe). It's especially common when
100+
and the JavaScript client (usually to subscribe). It's especially common when
101101
the Symfony app must use a local URL and the client-side JavaScript code a public one.
102102
In this case, ``MERCURE_URL`` must contain the local URL that will be used by the
103103
Symfony app (e.g. ``https://mercure/.well-known/mercure``), and ``MERCURE_PUBLIC_URL``
@@ -297,7 +297,7 @@ and to subscribe to it:
297297
Authorization
298298
-------------
299299

300-
Mercure also allows to dispatch updates only to authorized clients.
300+
Mercure also allows dispatching updates only to authorized clients.
301301
To do so, mark the update as **private** by setting the third parameter
302302
of the ``Update`` constructor to ``true``::
303303

@@ -348,7 +348,7 @@ is the way to go.
348348
.. tip::
349349

350350
The native implementation of EventSource doesn't allow specifying headers.
351-
For example, authorization using Bearer token. In order to achieve that, use `a polyfill`_
351+
For example, authorization using a Bearer token. In order to achieve that, use `a polyfill`_
352352

353353
.. code-block:: javascript
354354
@@ -559,7 +559,7 @@ its Mercure support.
559559
Testing
560560
--------
561561

562-
During unit testing there is not need to send updates to Mercure.
562+
During unit testing there is no need to send updates to Mercure.
563563

564564
You can instead make use of the `MockHub`::
565565

0 commit comments

Comments
 (0)