File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -236,15 +236,15 @@ WebsocketProviderV2 (beta)
236236 .. code-block :: python
237237
238238 >> > import asyncio
239- >> > from web3 import Web3
239+ >> > from web3 import AsyncWeb3
240240 >> > from web3.providers import WebsocketProviderV2
241241
242242 >> > LOG = True # toggle debug logging
243243 >> > if LOG :
244- >> > import logging
245- >> > logger = logging.getLogger(" web3.providers.WebsocketProviderV2" )
246- >> > logger.setLevel(logging.DEBUG )
247- >> > logger.addHandler(logging.StreamHandler())
244+ ... import logging
245+ ... logger = logging.getLogger(" web3.providers.WebsocketProviderV2" )
246+ ... logger.setLevel(logging.DEBUG )
247+ ... logger.addHandler(logging.StreamHandler())
248248
249249 >> > async def ws_v2_subscription_example ():
250250 ... async with AsyncWeb3.persistent_websocket(
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ class BaseProvider:
4242 )
4343
4444 is_async = False
45+ has_persistent_connection = False
4546 global_ccip_read_enabled : bool = True
4647 ccip_read_max_redirects : int = 4
4748
You can’t perform that action at this time.
0 commit comments