Class: EntityLivenessTracker
Tracks when each entity last received a message, distinguishing per-entity silence (a lost entity that should be released) from whole-stream silence (a degraded connection where nothing should be released).
Constructors
constructor
• new EntityLivenessTracker(options): EntityLivenessTracker
Parameters
| Name | Type |
|---|---|
options | EntityLivenessOptions |
Returns
Methods
collectStale
▸ collectStale(nowSeconds): string[]
Parameters
| Name | Type |
|---|---|
nowSeconds | number |
Returns
string[]
forget
▸ forget(id): void
Parameters
| Name | Type |
|---|---|
id | string |
Returns
void
touchEntity
▸ touchEntity(id, nowSeconds): void
Parameters
| Name | Type |
|---|---|
id | string |
nowSeconds | number |
Returns
void
touchStream
▸ touchStream(nowSeconds): void
Parameters
| Name | Type |
|---|---|
nowSeconds | number |
Returns
void