Class
MemStorageConnection
NotCreatableNotReplicated
Represents a live binding created by Bind() on MemStorageService
that runs a callback whenever a memory-storage key changes.
A MemStorageConnection is the object returned by the Bind() and
BindAndFire() methods of MemStorageService. It wraps the underlying
subscription to a memory-storage key: while the connection is retained, the
callback supplied at bind time is invoked on each update to that key. The
connection is parented to the MemStorageService that created it.
Calling MemStorageConnection:Disconnect(), or allowing the object to
be destroyed, detaches it and stops any further callbacks.
Methods 1#
| Disconnect | Ends the binding so its callback no longer runs when the associated memory-storage key changes.PluginSecurity security |
Disconnect(): ()#
PluginSecurity security
Detaches the connection from its parent MemStorageService and
disconnects the underlying subscription, so the callback supplied when the
connection was created is no longer invoked when the key is updated. This
is also called automatically when the MemStorageConnection is
destroyed. Once disconnected, a connection cannot be re-established; bind
again to resume receiving updates.
Returns
()
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild