a more standard way to handle HTTP requests…
https://github.com/rest-client/rest-client
Update 6/2014 – Working examples at Internet sensors projects: https://reactivemusic.net/?p=5859
original post
http://www.html5rocks.com/en/tutorials/websockets/basics/
http://www.websocket.org/echo.html
http://html5demos.com/web-socket
Got some examples running in web sockets (finally). Like with node.js, you can’t access servers from outside, which specify their ip address as localhost – you need to actually set a real ip, even if its a private ip like 192.168.1.20
Anyway I was able to get a ruby websocket server running using em-websocket and also another version using eventmachine.
Local files are in tkzic/websockets
the examples are running a public server at http://zerokidz.com/websockets/index.html
(need to start the server – also in that directory: ./server.rb
There’s also a simple node.js webserver in that folder – but after solving the problem above – apache works just fine.
For prototyping web apps on Mac OS, for example.
By César Pinto Castillo
https://github.com/JagCesar/Really-simple-web-server-Node-JS
update 11/20/2014
re-cloned local copy of repository to tkzic/webaudioapi.com
Also have copied the updates to my online server http://zerokidz.com/webaudioapi/content/posts
original post
http://webaudioapi.com/samples
Some notes on using the examples from the github repository… https://github.com/borismus/webaudioapi.com
Each example is contained in a post/ folder, but… a few things were missing – like the html wrappers for each example. They can be copied from http://webaudioapi.com/samples, using ‘view source’ and making these changes:
Then copy style.css and js/shared.js and place them in a static/ folder at the same level as posts. This way the examples will look right and have all shared refs.
My version of source is in: tkzic/web-audio-api/webaudioapi
Also try this link (not updated since 3/14/2013) http://zerokidz.com/webaudioapi/content/posts
I have kept the original zip, but it appears the archive is under active development and its probably worth cloning it and keeping it up to date…
Btw, this code and the book is amazing.
With full source code examples.
By Boris Smus at HTML5 Rocks
http://www.html5rocks.com/en/tutorials/webaudio/intro/
update 5/2014
To get full source with comments, make a URL in this format – (the buttons on the tutorial page only gives minified JS)
http://www.html5rocks.com/en/tutorials/webaudio/intro/js/rhythm-sample.js?ModPagespeed=off
Here’s a note about it: https://github.com/html5rocks/www.html5rocks.com/issues/367
To get the source for the UI – ie., buttons and sliders – just view the page source for the tutorial
Scheduling Web Audio
http://www.html5rocks.com/en/tutorials/audio/scheduling/
JAM with chrome case study
http://www.html5rocks.com/en/tutorials/casestudies/jamwithchrome-audio/
http://www.html5rocks.com/en/tutorials/casestudies/technitone/
By Dan Armendariz and David J. Malden at Harvard extension