workadventure/front
David Négrier 5b4a72ea1f Add new "query/answer" utility functions for the scripting API
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.
2021-07-02 16:49:22 +02:00
..
dist Added better favicon 2021-06-29 00:12:00 +01:00
packages/iframe-api-typings Dynamically fetching correct version and generating declarations only for npm lib 2021-04-11 11:32:56 +02:00
src Add new "query/answer" utility functions for the scripting API 2021-07-02 16:49:22 +02:00
style Merge branch 'develop' of github.com:thecodingmachine/workadventure into svelte_video_overlay 2021-06-24 10:49:55 +02:00
tests/Phaser Merge remote-tracking branch 'remotes/upstream/develop' into tiles-start-positions 2021-06-25 18:14:40 +02:00
.dockerignore Fixing Dockerfiles 2020-04-11 15:11:22 +02:00
.eslintrc.json Upgrading ESLint (and ignoring a bunch of interesting rules) 2021-05-12 11:44:41 +02:00
.gitignore Fixing .gitignore files 2021-06-23 16:30:42 +02:00
.prettierignore Adding prettier on back and pusher (not running them right now) 2021-06-23 16:23:16 +02:00
.prettierrc.json Making max line length to 120 2021-06-23 16:58:57 +02:00
Dockerfile [Breaking change] UPLOADER_URL and ADMIN_URL are now true URLs (and not only host name) and API_URL is replaced by PUSHER_URL 2021-03-31 16:00:14 +02:00
jasmine.json Adding PlayerMovement class to interpolate/extrapolate position along tests (installing Jasmine) 2020-06-02 10:48:04 +02:00
LICENSE.txt Changing license to AGPL + Commons Clause 2020-06-09 10:17:21 +02:00
package-lock.json Merge branch 'develop' of github.com:thecodingmachine/workadventure into iframe-api-refactor2 2021-06-21 11:53:07 +02:00
package.json Merge branch 'develop' of github.com:thecodingmachine/workadventure into jonnytest1-tiles-start-positions 2021-07-02 14:35:28 +02:00
templater.sh Fixing GA tag not included in play domain 2021-03-05 10:00:11 +01:00
tsconfig-for-jasmine.json Fixing Jasmine tests 2021-05-17 16:41:10 +02:00
tsconfig-for-webpack.json Adding correct SCSS file integration with Svelte 2021-05-17 16:41:09 +02:00
tsconfig.json Adding correct SCSS file integration with Svelte 2021-05-17 16:41:09 +02:00
webpack.config.ts Merging master into develop 2021-06-29 18:39:43 +02:00
yarn.lock Setting up prettier 2021-06-23 10:10:53 +02:00