Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/rpc-provider/mod.ts>WsProvider#on

Package publishing for deno.land/x/polkadot
Go to Latest
method WsProvider.prototype.on
import { WsProvider } from "https://deno.land/x/polkadot@0.2.14/rpc-provider/mod.ts";

Parameters

type: ProviderInterfaceEmitted

Event

sub: ProviderInterfaceEmitCb

Callback

Returns

() => void

unsubscribe function