Autobahn is sweded micromachines
Install git and node.js (currently version 0.4.2)
$ sudo port selfupdate $ sudo port install git nodejs
Checkout the code and submodules:
$ git clone https://[username]@github.com/full-baud/autobahn.git $ git submodule init $ git submodule update
Where we depend on other peoples code, we can tell git to add it as a submodule. This makes it appear to be part of our code tree, whilst still hosted in it's own repo.
$ git submodule add https://github.com/ncr/node.ws.js.git server/node_modules/
Submodules in use are:
See .gitmodules for the authoritative list.
Put unit tests in the spec directory. To run node.js tests $ cd test $ node specs.js
Autobahn in space
Server side, I've added in a check for users trying to update other users games or personal details. Since there is a one to one relationship with players and the socket they connect on, we could do away with the userId parameter to all of the request methods.