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