Skip to content

Host Bridge Protocol

Companion SDK は Vifu host と小さな JSON-RPC protocol で通信します。game code は protocol を直接送らず、SDK API を使ってください。

MethodDirectionDescription
companion.initializehost to gamebridge を初期化します。
companion.contexts/listhost to gameregistered context を一覧します。
companion.contexts/readhost to gamecontext snapshot を読みます。
companion.commands/listhost to gameregistered command を一覧します。
companion.commands/callhost to gamegame command を request します。
companion.observegame to hostobservation を送ります。
companion.signalgame to hostsignal を送ります。

game が state と command を所有します。host が command execution を request しても、input validation と実際の state change は game 側の責任です。