PartialView
Extends:
Member Summary
| Public Members | ||
| public get |
leastFrequent: string: * Get the least frequent peer. |
|
| public get |
Get the oldest peer in the partial view. |
|
Method Summary
| Public Methods | ||
| public |
Add the peer to the partial view with an age of 0. |
|
| public |
Increment the age of the whole partial view |
|
| public |
Remove all entries of the peer from the partial view. |
|
| public |
removeOldest(peerId: string) Remove the oldest entry of the peer from the partial view. |
|
| public |
removeYoungest(peerId: string) Remove the newest entry of the peer from the partial view. |
|
Public Members
Public Methods
public add(peerId: string) source
Add the peer to the partial view with an age of 0.
Params:
| Name | Type | Attribute | Description |
| peerId | string | The identifier of the peer added to the partial view. |
public removeAll(peerId: string): number source
Remove all entries of the peer from the partial view.
Params:
| Name | Type | Attribute | Description |
| peerId | string | The identifier of the peer to remove from the partial view. |
