workadventure/pusher
David Négrier c9fa9b9a92 Migrating away from the notion of public/private URL in WorkAdventure Github repository
The notion of public/private repositories (with /_/ and /@/ URLs) is specific to the SAAS version of WorkAdventure.
It would be better to avoid leaking the organization/world/room structure of the private SAAS URLs inside the WorkAdventure Github project.

Rather than sending http://admin_host/api/map?organizationSlug=...&worldSlug=...&roomSlug=...., we are now sending /api/map&playUri=...
where playUri is the full URL of the current game.
This allows the backend to act as a complete router.
The front (and the pusher) will be able to completely ignore the specifics of URL building (with /@/ and /_/ URLs, etc...)
Those details will live only in the admin server, which is way cleaner (and way more powerful).
2021-07-15 17:07:47 +02:00
..
src Migrating away from the notion of public/private URL in WorkAdventure Github repository 2021-07-15 17:07:47 +02:00
tests Migrating away from the notion of public/private URL in WorkAdventure Github repository 2021-07-15 17:07:47 +02:00
.dockerignore Adding a Pusher container as a middleware/dispatcher between front and back 2020-11-26 17:53:30 +01:00
.eslintrc.json Adding a Pusher container as a middleware/dispatcher between front and back 2020-11-26 17:53:30 +01:00
.gitignore Adding a Pusher container as a middleware/dispatcher between front and back 2020-11-26 17:53:30 +01: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 *: Dockerfiles cleanup, docker-compose.prod.yaml 2021-01-12 22:32:37 +01:00
Dockerfile.prod *: Dockerfiles cleanup, docker-compose.prod.yaml 2021-01-12 22:32:37 +01:00
jasmine.json Adding a Pusher container as a middleware/dispatcher between front and back 2020-11-26 17:53:30 +01:00
LICENSE.txt Adding a Pusher container as a middleware/dispatcher between front and back 2020-11-26 17:53:30 +01:00
package.json Fixing prettier run command 2021-06-23 16:56:33 +02:00
README.md Adding a Pusher container as a middleware/dispatcher between front and back 2020-11-26 17:53:30 +01:00
server.ts Add a PUSHER_HTTP_PORT configuration variable. 2021-01-04 18:23:33 +01:00
tsconfig.json Adding a Pusher container as a middleware/dispatcher between front and back 2020-11-26 17:53:30 +01:00
yarn.lock Setting up lint-staged on front and back 2021-06-23 16:45:38 +02:00

Pusher

The pusher component is in charge of accepting WebSocket and HTTP connections from the front and forwarding them to the correct "api" server (or to the "admin").