This service is used by plugins to communicate with other instances of
themselves running in other data models.
Its interface does not cross the network boundary.
Instances of this class cannot be created with Instance.new.
It is a singleton that may be acquired with GetService.
Tags: [NotCreatable, Service, NotReplicated]
This service is used by plugins to communicate with other instances of
themselves running in other data models (e.g. a plugin in the Studio edit data
model can communicate with the instance of that same plugin in the Studio
playtest Server data model). Plugins can retrieve PluginConnection
objects from this service, which provide an API for sending messages across
the data model boundary. All access to this class is restricted to Plugin
security. The command bar is not currently supported.
Checks if the current data model can potentially have connections of a
given PluginConnectionTargetType. Note that it is possible for this
function to return true even if no such connections currently exist.
History 1
GetPluginConnectionsOfType
Returns a list of currently connected PluginConnection objects
with the given connection type. Each PluginConnection from this list
will initially have their Connected property set to true and correspond
to a connected data model related to the current data model according to
their PluginConnectionTargetType. For example, an edit data model
may have PluginConnectionTargetType.Test connections to communicate
with its ongoing playtest data models, and each test data model will have
an PluginConnectionTargetType.Edit connection back to its edit data
model.
History 1