filecoin.js > WsJsonRpcConnector > on
WsJsonRpcConnector.on() method
Signature:
on(event: 'connected' | 'disconnected' | 'error' | SubscriptionId, listener: (...args: any[]) => void): this;
Parameters
Parameter | Type | Description |
---|---|---|
event | 'connected' | 'disconnected' | 'error' | SubscriptionId | |
listener | (...args: any[]) => void |
Returns:
this