Unfortunately destroy signal is literally destroying the signal and getting rid of it completely with the given path. You can still store connections on your own and disconnect from each individual system.
Awesome! So for clarification, for temporary remote tables, following these three steps for clean-up should be enough to ensure no memory leaks with this module?
RemoteTableServer.Destroy(token)is called on server-side- Signal connections are cleaned up on client-side (the ones provided through
GetSignal(...)=>Connect) - The table itself loses its reference (e.g.
t = nil) on both the server & client side
I’m guessing that DestroySignal is there purely for convenience, if you decide to keep track of the paths you’re listening to instead of the individual connections.
I usually prefer to keep track of individual connections created through Maid objects and dispose of them when they’re no longer needed (e.g. when the RemoteTable is destroyed).
Note that if you listen to a temporary remote table that might be destroyed during runtime you are expected to disconnect on your own. Although If there is enough demand for it I might add a way to detect when a remote table is destroyed.
I could see the use cases, as currently the workaround would be to rely on other events that get triggered on the client (e.g. other player leaving must mean that RemoteTable is getting destroyed on the server).
