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