5b4a72ea1f
So far, the scripting API was using events to communicate between WA and the iFrame. But often, the scripting API might actually want to "ask" WA a question and wait for an answer. We dealt with this by using 2 unrelated events (in a mostly painful way). This commit adds a "queryWorkadventure" utility function in the iFrame API that allows us to send a query, and to wait for an answer. The query and answer events have a unique ID to be sure the answer matches the correct query. On the WA side, a new `IframeListener.registerAnswerer` method can be used to register a possible answer. |
||
---|---|---|
.. | ||
Sound | ||
Ui | ||
chat.ts | ||
controls.ts | ||
IframeApiContribution.ts | ||
nav.ts | ||
player.ts | ||
registeredCallbacks.ts | ||
room.ts | ||
sound.ts | ||
ui.ts |