@parity/light.js
Version:
A high-level reactive JS library optimized for light clients
28 lines (14 loc) • 705 B
Markdown
# Functions
<a id="peercount_"></a>
## peerCount$
▸ **peerCount$**(options?: *[RpcObservableOptions](../interfaces/_types_.rpcobservableoptions.md)*): `Observable`<`BigNumber`>
*Defined in [rpc/net.ts:21](https://github.com/paritytech/js-libs/blob/66e2091/packages/light.js/src/rpc/net.ts#L21)*
Get the amount of peers.
Calls `net_peerCount`
**Parameters:**
| Name | Type | Description |
| ------ | ------ | ------ |
| `Optional` options | [RpcObservableOptions](../interfaces/_types_.rpcobservableoptions.md) | Options to pass to [RpcObservableOptions](../interfaces/_types_.rpcobservableoptions.md). |
**Returns:** `Observable`<`BigNumber`>
* An Observable containing the number.
___