ReadonlyclientReadonlygetReadonlyupdateProtectedaddAdd a previously hydrated object to the collection
Id
Instance
Hydrated
Add a pre-hydrated server member to this collection.
The server member instance
Create a new instance of an object
Id
Type
Instance
Context
Optionaldata: unknownData
Delete an object
Id
Fetch server member by Id
Server Id
User Id
Message
Filter the collection by a given predicate
Predicate to satisfy
Find some value based on a predicate
Predicate to satisfy
Execute a provided function over each key, value pair in the map
Callback for each pair
Iterable
Get member by composite key
Id
Member
Get or create
Id
Data
Optionalavatar?: Optionalcan_publish?: booleanOptionalcan_receive?: booleanOptionalnickname?: null | stringOptionalpronouns?: null | stringOptionalroles?: string[]Optionaltimeout?: null | stringGet or return partial
Id
Check whether an id exists in the Collection
Id
Whether it exists
ProtectedhydrateHydrate a new instance of an object. This function does not add the object to the collection.
Type
Context
Data
Hydrate a new server member if it is not in the collection yet. This function does not add the server member to the store, make sure you call addHydratedServerMember afterwards. This function is particularly useful when adding many server members asynchronously. See Server.syncMembers for an example of this in use.
The ID of the server member
The API object for a server member
Optionalavatar?: Optionalcan_publish?: booleanOptionalcan_receive?: booleanOptionalnickname?: null | stringOptionalpronouns?: null | stringOptionalroles?: string[]Optionaltimeout?: null | stringThe HydratedServerMember, or undefined if the user is in the collection
Check whether an object is partially defined
Id
Whether it is a partial
Iterable of keys in the map
Iterable
Map the collection using a given callback
Callback
Number of stored objects
Size
Collection of Server Members