Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » How do cloud variables work client side
- scratchusername40
-
Scratcher
1000+ posts
How do cloud variables work client side
I was looking at the page source of a project with cloud variables and I couldn't figure out how the cloud variables worked. There's no websocket which seems like the obvious option. My browser's timeline recording didn't show any xhr/fetch requests either though that would not be a good way of doing it.
So I want to know: what method is used on the client side to set and get the cloud variables? Pls help
So I want to know: what method is used on the client side to set and get the cloud variables? Pls help
- Chiroyce
-
Scratcher
1000+ posts
How do cloud variables work client side
So it is a websocket! Then why did safari not show it?Safari does show it —
Make sure you have this checked in Safari's settings

it'll be under the advanced tab btw.
Then right click on the page, press inspect. Reload the project page and click on “Other”

and there you go

Also this post explains the entire process - https://scratch.mit.edu/discuss/post/5607340/
- scratchusername40
-
Scratcher
1000+ posts
How do cloud variables work client side
I was looking in the wrong tab lolSo it is a websocket! Then why did safari not show it?Safari does show it —
Make sure you have this checked in Safari's settings
it'll be under the advanced tab btw.
Then right click on the page, press inspect. Reload the project page and click on “Other”
and there you go
Also this post explains the entire process - https://scratch.mit.edu/discuss/post/5607340/
- Discussion Forums
- » Advanced Topics
-
» How do cloud variables work client side