scratchfoundation / scratch-flash

Open source version of the Scratch 2.0 project editor. This is the basis for the online and offline versions of Scratch found on the website.
https://scratch.mit.edu
GNU General Public License v2.0
1.33k stars 512 forks source link

Get cloud variables over HTTP #1369

Closed trumank closed 6 years ago

trumank commented 6 years ago

The old /varserver/:id endpoint only returns data from before the transition to the new cloud infrastructure. Is there (or will there be) a way to get cloud data over HTTP again?

Kenny2github commented 6 years ago

ooh, good question. I believe thanks to the integrity of the new infrastructure, the cloud system doesn't fall back to HTTP at all anymore.

Please note, however, that Scratch 2.0 is now in maintenance mode as the Scratch Team focuses their efforts on Scratch 3.0 and the Scratch website. Only issues labeled prio-high will be addressed before the first alpha release of Scratch 3.0.

thisandagain commented 6 years ago

Hi @trumank. No, the new cloud data system only supports secure web sockets (WSS). We do not have any plans to support HTTPS long polling.

trumank commented 6 years ago

Specifically, I was wondering how I could get current cloud data (either by via websockets or HTTP) without having to authenticate as a Scratch user. If only websockets are supported, is there a way to get the state without having to send a scratch session token?