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.

running Chromium 42.0.2311.90 with Flash Player 15.0.0.189 on Arch Linux 3.19.5-1-ck
MathWizzJsScratch && sb.js & Amber (coming soon! maybe)
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…

I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.
MathWizz
Scratcher
100+ posts

Communicating With Scratch Via Javascript

Create a websocker server that the browser connects to and pipe that directly to scratch…

running Chromium 42.0.2311.90 with Flash Player 15.0.0.189 on Arch Linux 3.19.5-1-ck
MathWizzJsScratch && sb.js & Amber (coming soon! maybe)
djdolphin
Scratcher
1000+ posts

Communicating With Scratch Via Javascript

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

!

Powered by DjangoBB