From a43d8bd921ae1d043b74e04112a97229eeadb53d Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Wed, 21 Feb 2018 10:49:42 +0800 Subject: [PATCH] README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index f85fe66..c411f40 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,9 @@ use Web3\Providers\HttpProvider; use Web3\RequestManagers\HttpRequestManager; $web3 = new Web3(new HttpProvider(new HttpRequestManager('http://localhost:8545'))); + +// timeout +$web3 = new Web3(new HttpProvider(new HttpRequestManager('http://localhost:8545', 0.1))); ``` ### You can use callback to each rpc call: