Discuss Scratch

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
dhuls
Scratcher
1000+ posts

How do cloud variables work client side

I think it's here and here
scratchusername40
Scratcher
1000+ posts

How do cloud variables work client side

dhuls wrote:

I think it's here and here
So it is a websocket! Then why did safari not show it?
god286
Scratcher
1000+ posts

How do cloud variables work client side

scratchusername40 wrote:

dhuls wrote:

I think it's here and here
So it is a websocket! Then why did safari not show it?
Firefox detects it. “101 Switching Protocols”
Chiroyce
Scratcher
1000+ posts

How do cloud variables work client side

scratchusername40 wrote:

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

Chiroyce wrote:

scratchusername40 wrote:

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/
I was looking in the wrong tab lol

Powered by DjangoBB