@@ -201,13 +201,13 @@ message and receive a response to that particular request,
201201response *id * values coming back from the websocket connection. Any provider that does
202202not adhere to the `JSON-RPC 2.0 specification <https://www.jsonrpc.org/specification >`_
203203in this way will not work with ``PersistentConnectionProvider `` instances. The specifics
204- of how the request processor handles this is outlined below.
204+ of how the request processor handles this are outlined below.
205205
206206One-To-One Requests
207207~~~~~~~~~~~~~~~~~~~
208208
209- One-to-one requests can be summarized as any request that expects one response back.
210- An example is using the ``eth `` module API to request the latest block number.
209+ One-to-one requests can be summarized as any request that expects only one response
210+ back. An example is using the ``eth `` module API to request the latest block number.
211211
212212.. code-block :: python
213213
@@ -220,13 +220,13 @@ An example is using the ``eth`` module API to request the latest block number.
220220
221221 >> > asyncio.run(wsV2_one_to_one_example())
222222
223- With websockets we have to call ``ws_send () `` and asynchronously receive responses via
224- ``ws. recv() ``. In order to make the one-to-one request-to-response call work, we
225- have to save the request information somewhere so that, when the response is received,
226- we can match it to the original request that was made ( the request with a matching * id *
227- to the response that was received), and use that request information to process the
228- response. Processing the response, in this case, means running it through the
229- formatters and middlewares internal to the *web3.py * library.
223+ With websockets we have to call ``send () `` and asynchronously receive responses via
224+ ``recv() ``. In order to make the one-to-one request-to-response call work, we
225+ have to save the request information somewhere so that when the response is received
226+ we can match it to the original request that was made i.e. the request with a matching
227+ * id * to the response that was received). The stored request information is then used to
228+ process the response when it is received, piping it through the response formatters and
229+ middlewares internal to the *web3.py * library.
230230
231231In order to store the request information, the ``RequestProcessor `` class has an
232232internal ``RequestInformation `` cache. The ``RequestInformation `` class saves important
@@ -279,7 +279,7 @@ successful. For this reason, the original request is considered a one-to-one req
279279so that a subscription *id * can be returned to the user on the same line, but the
280280``listen_to_websocket() `` method on the
281281:class: `~web3.providers.websocket.WebsocketConnection ` class, the public API for
282- interacting with the active websocket connection, is set up to receive many-to-one
282+ interacting with the active websocket connection, is set up to receive
283283``eth_subscription `` responses over an asynchronous interator pattern.
284284
285285.. code-block :: python
0 commit comments