Discuss Scratch

djdolphin
Scratcher
1000+ posts

Communicating With Scratch Via Javascript

Is it possible for Javascript to communicate with Scratch using RSC and WebSocket? I've only found instructions on how to communicate with Scratch using Python, Actionscript, and Objective-C. If it is possible, then what code would you use to do it?
jji7skyline
Scratcher
1000+ posts

Communicating With Scratch Via Javascript

I think those instructions to communicate are for Scratch 1.4.
djdolphin
Scratcher
1000+ posts

Communicating With Scratch Via Javascript

Yeah, I know.
Hardmath123
Scratcher
1000+ posts

Communicating With Scratch Via Javascript

You can use a local socket server and websockets together with twisted/python.
MathWizz
Scratcher
100+ posts

Communicating With Scratch Via Javascript

Use node.js.
easymath123
Scratcher
100+ posts

Communicating With Scratch Via Javascript

MathWizz wrote:

Use node.js.
Node.js website
djdolphin
Scratcher
1000+ posts

Communicating With Scratch Via Javascript

easymath123 wrote:

MathWizz wrote:

Use node.js.
Node.js website
Node.js would work, but I need a way to communicate with Scratch from a web browser, preferably with javascript.
DigiTechs
Scratcher
500+ posts

Communicating With Scratch Via Javascript

djdolphin wrote:

easymath123 wrote:

MathWizz wrote:

Use node.js.
Node.js website
Node.js would work, but I need a way to communicate with Scratch from a web browser, preferably with javascript.
node.js IS javascript though…
MathWizz
Scratcher
100+ posts

Communicating With Scratch Via Javascript

Create a websocker server that the browser connects to and pipe that directly to scratch…
djdolphin
Scratcher
1000+ posts

Communicating With Scratch Via Javascript

Never mind. I don't need to do this anymore.

Powered by DjangoBB