I have followed Web3 documentation to subscribe an evnet, I have created Instance of web3 using infura url as argument.
Created contract object using,
const contract = web3.eth.contract(abi, address)
Where abi and address containing Contract ABI and Contract Address respectively.
All documents and tutorials used web3.eth.Contract but it give TypeError: web3.eth.Contract is not a Constructor, so I have replaced it with 'c' web3.eth.contract.
The contract object returns, ContractFactory -> eth -> (List of functions) -> abi -> new In object structure.
I am not able to get an Event as object structure. Referred this tutorial also.
I have web3 version: 0.20.7, is there any problem with web3 version?