@@ -527,48 +527,6 @@ Interacting with the Persistent Connection
527527 For example, use ``w3.eth.get_block("latest") `` instead of
528528 ``w3.socket.make_request("eth_getBlockByNumber", ["latest", True]) ``.
529529
530-
531- LegacyWebSocketProvider
532- ~~~~~~~~~~~~~~~~~~~~~~~
533-
534- .. warning ::
535-
536- ``LegacyWebSocketProvider `` is deprecated and is likely to be removed in a
537- future major release. Please use ``WebSocketProvider `` instead.
538-
539- .. py :class :: web3.providers.legacy_websocket.LegacyWebSocketProvider(endpoint_uri[, websocket_timeout, websocket_kwargs])
540-
541- This provider handles interactions with an WS or WSS based JSON-RPC server.
542-
543- * ``endpoint_uri `` should be the full URI to the RPC endpoint such as
544- ``'ws://localhost:8546' ``.
545- * ``websocket_timeout `` is the timeout in seconds, used when receiving or
546- sending data over the connection. Defaults to 10.
547- * ``websocket_kwargs `` this should be a dictionary of keyword arguments which
548- will be passed onto the ws/wss websocket connection.
549-
550- .. code-block :: python
551-
552- >> > from web3 import Web3
553- >> > w3 = Web3(Web3.LegacyWebSocketProvider(" ws://127.0.0.1:8546" ))
554-
555- Under the hood, ``LegacyWebSocketProvider `` uses the python ``websockets `` library for
556- making requests. If you would like to modify how requests are made, you can
557- use the ``websocket_kwargs `` to do so. See the `websockets documentation `_ for
558- available arguments.
559-
560- .. _`websockets documentation` : https://websockets.readthedocs.io/en/stable/reference/asyncio/client.html#websockets.client.WebSocketClientProtocol
561-
562- Unlike HTTP connections, the timeout for WS connections is controlled by a
563- separate ``websocket_timeout `` argument, as shown below.
564-
565-
566- .. code-block :: python
567-
568- >> > from web3 import Web3
569- >> > w3 = Web3(Web3.LegacyWebSocketProvider(" ws://127.0.0.1:8546" , websocket_timeout = 60 ))
570-
571-
572530AutoProvider
573531~~~~~~~~~~~~
574532
0 commit comments