From the web3 documentation I use this code sample:
var subscription = web3.eth.subscribe('logs', {
address: '0x123456..',
topics: ['0x12345...'] }, function(error, result){
if (!error)
console.log(log);
});
and I got this error:
TypeError: web3.eth.subscribe is not a function
is "subscribe" deprecated ? Is there a replacement for it ?