pip3 install -r requirements.txt
npm install
export PROJECT_ID=<Your Infura Project ID>
Same implementation, returns events in web3.js, timeout in web3.py --
node ropstenWssTimeoutDemo.js
python3 ropsten_wss_timeout_demo.py
In addition, ropsten_wss_timeout_demo2.py shows web3.py works when toBlock - fromBlock <= 112, but timeout when toBlock - fromBlock > 112
python3 ropsten_wss_timeout_demo2.py