# PluginConnection(ロブロックス クラス) > Encapsulates a connection between the current data model and another for plugin communication. - URL:https://roblox.minecraft-okinawa.com/reference/classes/PluginConnection/ - 公式:https://create.roblox.com/docs/reference/engine/classes/PluginConnection - 受け継いでいるクラス:Object ## プロパティ - `PluginConnection.Connected: boolean`:Whether this PluginConnection object is still connected. - `PluginConnection.TargetId: string`:A unique ID for the target data model. - `PluginConnection.Type: PluginConnectionTargetType`:This PluginConnectionTargetType describes the relationship of the target data model to the current one. ## メソッド - `PluginConnection:BindToMessage(callback: Function): RBXScriptConnection`:Binds a callback to this PluginConnection to receive messages from SendMessage(). - `PluginConnection:SendMessage(message: Variant): ()`:Sends a payload to the remote data model. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)