method WsProvider.prototype.onimport { WsProvider } from "https://deno.land/x/polkadot@0.2.23/rpc-provider/mod.ts"; on(type: ProviderInterfaceEmitted, sub: ProviderInterfaceEmitCb): () => voidParameterstype: ProviderInterfaceEmittedEvent sub: ProviderInterfaceEmitCbCallback Returns() => voidunsubscribe function