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