Based on the docs of ethersjs, I could use the provider.on() function to listen for events and perform some actions. However, would it still work if I don't have a websocket RPC URL?
If it still does work without a websocket RPC, how does it constantly listening for an event?
If it must have a websocket RPC to work, how else can I listen for an emitted event without using a websocket RPC in ethersjs?