Hello I have this piece of node.js app
const web3Rinkeby = new Web3(‘wss://rinkeby.infura.io/ws/v3/’+process.env.INFURA_KEY);
const routerRinkeby = new web3Rinkeby.eth.Contract(
router_abi,
parsedRouter.networks[‘4’].address
);
routerRinkeby.events.newMovement({fromBlock: 0, step: 0}
)
.on(‘data’, async event => { … });
this works perfectly for a while, then it stops tu receive events.
I reboot the node.js server then it works again, then I wait for 1 hour without do anything with my contract, then I try again and the event is not triggered.
What’s the problem?