Skip to content

wilkerlucio/ws.squares

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSockets Squares

About

Its a tiny app to make an experiment with WebSockets. It uses Node as application manager, and Sinatra as front server.

Requirements

In order to run this app you need to have installed:

  • Ruby
  • Sinatra
  • Node
  • CoffeeScript

Install

Just clone the repository.

git clone git://github.com:wilkerlucio/ws.squares.git

Run

You need to run the two servers:

ruby game.rb
coffee ws-server.coffee

Them open some browser windows (prefer Chrome 4+ which supports websockets natively) and access:

http://localhost:4567

Use the keyboard arrows to move your square, when you move, your square position will be automatically updated on other screens at real time :)

Misc

For purists, I exported a js version of ws-server. You can run this without coffee.

About

WebSockets experiment with Node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published