so i opened the web console while browsing the project editor in scratch2.
turns out the page sends messages two times a second just to realize there aren't any cloud vars in the project. clever, ST
so i just suggest you disable it when you get a {"vars":[],"lists":[]} answer
(and maybe give an option for people that pay for each MB to disable auto-update)
Offline
Yeah, if there aren't any cloud variables, it shouldn't check for them.
Offline
Or maybe, if a cloud variable is updated, it should send a message to the server, which sends a message to all the projects using it so the project doesn't have to check all the time.
Offline
joefarebrother wrote:
Or maybe, if a cloud variable is updated, it should send a message to the server, which sends a message to all the projects using it so the project doesn't have to check all the time.
Yeah, so maybe like Remote Sensors Connections
Offline
joefarebrother wrote:
Or maybe, if a cloud variable is updated, it should send a message to the server, which sends a message to all the projects using it so the project doesn't have to check all the time.
Good point. That's exactly how it works when Scratch can open a connection to the server. The HTTP method is the fallback when (as often happens) a firewall prevents Scratch from opening a connection to the cloud data port number. (roijac's firewall must be blocking that port).
-- John
Last edited by johnadmin (2012-05-31 16:45:47)
Offline