-
Notifications
You must be signed in to change notification settings - Fork 8
Technical documentation
Julien Dorra edited this page Sep 17, 2017
·
6 revisions
- trigger: a new Playground is opened in a browser and connect to the server, send its ID and client type (renderer).
- emitter: public/paysagerenderer.js
- receivers: app.js
- data {playgroundId: playgroundid, client: client}
- trigger: a new Programmer is opened in a browser and connect the server, send the ID of the playground it is targeting and it client type (programmer).
- emitter: public/programmerjs/receptiontransmission.js
- receiver: app.js
- data {playgroundId: playgroundid, client: client}
- trigger: an user click on the [Go live!] button to send a new code.
- emitter: public/programmerjs/receptiontransmission.js (Programmer)
- receivers: public/paysagerenderer.js app.js (Server)
- data {playgroundId: playgroundid, objectId: objectid, mediatype: mediatype, client: client, code: code}
-
trigger: the server receive a
code update
from a Programmer page and must then send a new list to the programmer pages - emitter: app.js
- receivers: public/programmerjs/receptiontransmission.js
- data
- playgroundId
- objectIds
See code update
.
- trigger:
- emitter: app.js
- receivers: public/paysagerenderer.js
- data {ObjectId: code}
- trigger: an user click on a code object link from the code object list to get it in their Programmer
- emitter: public/programmerjs/receptiontransmission.js
- receiver: app.js
- data
- playgroundId
- objectId
-
trigger: the server receive a
request code
message from a Programmer page - emitter: app.js
- receivers: public/programmerjs/receptiontransmission.js
- data
- playgroundId
- objectId
- code
viewer viewer browser server
|--- open page --------->| |
| |---------- connect -------->|
| |<- playground full update --|
|<-- renders creatures---| |
programmer browser server
|--- open page --------->| |
| |---------- connect -------->|
| |<-------- objects list -----|
|<- show code ids list --| |
programmer browser server
|---- click code id ---->|
| |------ request code ------->|
| |<----- source code ---------|
|<- show code in editor -|
programmer programmer browser server preview/other clients
|--- click "go live" ---->| | |
| |---- code update ----->| |
| | |------ code update ----------->|
| |<----------------------+------ objects list ---------->|
programmer programmer browser server preview/other clients
|--- click 🗑 ---->| | |
| |---- code delete ----->| |
| | |----- code delete ----------->|
| |<----------------------+----- objects list ---------->|