├── .gitignore ├── README.md ├── app ├── Platform.js ├── Player.js ├── assets.js ├── config.js ├── lib │ ├── ammo.js │ ├── hammer.min.js │ ├── sweetalert.min.js │ ├── underscore-min.map │ ├── wage.js │ ├── wage.min.js │ └── workers │ │ └── physijs_worker.js ├── main.js └── scripts │ ├── camera │ └── cameraScript.js │ └── cube │ └── mybox.js ├── assets └── audio │ ├── rain.mp3 │ └── shot.mp3 ├── css ├── index.css ├── loader_bounce.css └── sweetalert.css ├── img ├── cube.png ├── down_arrow.png ├── explosion.png ├── platform_base.png ├── platform_obstacle.jpg ├── platform_obstacle_cracked.jpg ├── platform_pole.png ├── platform_wall.png ├── player_body.png ├── player_gun.png ├── pointer_cross.png ├── smokeparticle.png └── starfield.png ├── index.html ├── run └── server ├── Player.js ├── node_modules ├── socket.io │ ├── .npmignore │ ├── .travis.yml │ ├── History.md │ ├── LICENSE │ ├── Makefile │ ├── Readme.md │ ├── index.js │ ├── lib │ │ ├── client.js │ │ ├── index.js │ │ ├── namespace.js │ │ └── socket.js │ ├── node_modules │ │ ├── debug │ │ │ ├── .jshintrc │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── browser.js │ │ │ ├── component.json │ │ │ ├── debug.js │ │ │ ├── node.js │ │ │ ├── node_modules │ │ │ │ └── ms │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── engine.io │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── engine.io.js │ │ │ │ ├── server.js │ │ │ │ ├── socket.js │ │ │ │ ├── transport.js │ │ │ │ └── transports │ │ │ │ │ ├── index.js │ │ │ │ │ ├── polling-jsonp.js │ │ │ │ │ ├── polling-xhr.js │ │ │ │ │ ├── polling.js │ │ │ │ │ └── websocket.js │ │ │ ├── node_modules │ │ │ │ ├── base64id │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── README.md │ │ │ │ │ ├── lib │ │ │ │ │ │ └── base64id.js │ │ │ │ │ └── package.json │ │ │ │ ├── debug │ │ │ │ │ ├── .jshintrc │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── browser.js │ │ │ │ │ ├── component.json │ │ │ │ │ ├── debug.js │ │ │ │ │ ├── node.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── ms │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ └── package.json │ │ │ │ ├── engine.io-parser │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── .zuul.yml │ │ │ │ │ ├── History.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── browser.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── keys.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── after │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── LICENCE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ └── after-test.js │ │ │ │ │ │ ├── arraybuffer.slice │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ └── slice-buffer.js │ │ │ │ │ │ ├── base64-arraybuffer │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── LICENSE-MIT │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── grunt.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ └── base64-arraybuffer.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ └── base64-arraybuffer_test.js │ │ │ │ │ │ ├── blob │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .zuul.yml │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ ├── has-binary │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── fixtures │ │ │ │ │ │ │ │ └── big.json │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ └── isarray │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── build │ │ │ │ │ │ │ │ │ └── build.js │ │ │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ └── utf8 │ │ │ │ │ │ │ ├── .gitattributes │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── Gruntfile.js │ │ │ │ │ │ │ ├── LICENSE-GPL.txt │ │ │ │ │ │ │ ├── LICENSE-MIT.txt │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── bower.json │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ ├── coverage │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ ├── prettify.css │ │ │ │ │ │ │ ├── prettify.js │ │ │ │ │ │ │ └── utf8.js │ │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ │ └── utf8.js.html │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── tests │ │ │ │ │ │ │ ├── generate-test-data.py │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ └── tests.js │ │ │ │ │ │ │ ├── utf8.js │ │ │ │ │ │ │ └── x.js │ │ │ │ │ └── package.json │ │ │ │ └── ws │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── binding.gyp │ │ │ │ │ ├── build │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Release │ │ │ │ │ │ ├── .deps │ │ │ │ │ │ │ └── Release │ │ │ │ │ │ │ │ ├── bufferutil.node.d │ │ │ │ │ │ │ │ ├── obj.target │ │ │ │ │ │ │ │ ├── bufferutil │ │ │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ │ │ └── bufferutil.o.d │ │ │ │ │ │ │ │ └── validation │ │ │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ │ └── validation.o.d │ │ │ │ │ │ │ │ └── validation.node.d │ │ │ │ │ │ ├── bufferutil.node │ │ │ │ │ │ ├── linker.lock │ │ │ │ │ │ ├── obj.target │ │ │ │ │ │ │ ├── bufferutil │ │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ │ └── bufferutil.o │ │ │ │ │ │ │ └── validation │ │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ └── validation.o │ │ │ │ │ │ └── validation.node │ │ │ │ │ ├── binding.Makefile │ │ │ │ │ ├── bufferutil.target.mk │ │ │ │ │ ├── config.gypi │ │ │ │ │ ├── gyp-mac-tool │ │ │ │ │ └── validation.target.mk │ │ │ │ │ ├── builderror.log │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ ├── BufferPool.js │ │ │ │ │ ├── BufferUtil.fallback.js │ │ │ │ │ ├── BufferUtil.js │ │ │ │ │ ├── ErrorCodes.js │ │ │ │ │ ├── Receiver.hixie.js │ │ │ │ │ ├── Receiver.js │ │ │ │ │ ├── Sender.hixie.js │ │ │ │ │ ├── Sender.js │ │ │ │ │ ├── Validation.fallback.js │ │ │ │ │ ├── Validation.js │ │ │ │ │ ├── WebSocket.js │ │ │ │ │ ├── WebSocketServer.js │ │ │ │ │ └── browser.js │ │ │ │ │ ├── node_modules │ │ │ │ │ ├── nan │ │ │ │ │ │ ├── .dntrc │ │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ │ ├── LICENSE.md │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── appveyor.yml │ │ │ │ │ │ ├── include_dirs.js │ │ │ │ │ │ ├── nan.h │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── options │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ └── options.js │ │ │ │ │ │ └── package.json │ │ │ │ │ └── ultron │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── test.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── src │ │ │ │ │ ├── bufferutil.cc │ │ │ │ │ └── validation.cc │ │ │ │ │ └── wscat │ │ │ │ │ ├── README.md │ │ │ │ │ ├── bin │ │ │ │ │ └── wscat │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── has-binary-data │ │ │ ├── .npmignore │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── fixtures │ │ │ │ └── big.json │ │ │ ├── gen.js │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ └── isarray │ │ │ │ │ ├── README.md │ │ │ │ │ ├── build │ │ │ │ │ └── build.js │ │ │ │ │ ├── component.json │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ ├── package.json │ │ │ └── test.js │ │ ├── socket.io-adapter │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── node_modules │ │ │ │ ├── debug │ │ │ │ │ ├── .jshintrc │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── browser.js │ │ │ │ │ ├── component.json │ │ │ │ │ ├── debug.js │ │ │ │ │ ├── node.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── ms │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ └── package.json │ │ │ │ ├── object-keys │ │ │ │ │ ├── .jscs.json │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── CHANGELOG.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ ├── isArguments.js │ │ │ │ │ └── package.json │ │ │ │ └── socket.io-parser │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── .zuul.yml │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── bench │ │ │ │ │ ├── bench.js │ │ │ │ │ └── index.js │ │ │ │ │ ├── binary.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── is-buffer.js │ │ │ │ │ ├── node_modules │ │ │ │ │ ├── benchmark │ │ │ │ │ │ ├── LICENSE.txt │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── benchmark.js │ │ │ │ │ │ ├── doc │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── test │ │ │ │ │ │ │ ├── run-test.sh │ │ │ │ │ │ │ └── test.js │ │ │ │ │ ├── component-emitter │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ ├── bower.json │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── debug │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ ├── debug.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ └── debug.js │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── isarray │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── build │ │ │ │ │ │ │ └── build.js │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ └── package.json │ │ │ │ │ └── json3 │ │ │ │ │ │ ├── .gitmodules │ │ │ │ │ │ ├── .jamignore │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ ├── coverage │ │ │ │ │ │ ├── coverage.json │ │ │ │ │ │ ├── lcov-report │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ └── json3.js.html │ │ │ │ │ │ │ ├── prettify.css │ │ │ │ │ │ │ └── prettify.js │ │ │ │ │ │ └── lcov.info │ │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── json3.js │ │ │ │ │ │ └── json3.min.js │ │ │ │ │ │ └── package.json │ │ │ │ │ └── package.json │ │ │ └── package.json │ │ ├── socket.io-client │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── index.js │ │ │ │ ├── manager.js │ │ │ │ ├── on.js │ │ │ │ ├── socket.js │ │ │ │ └── url.js │ │ │ ├── node_modules │ │ │ │ ├── backo2 │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── component.json │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ └── index.js │ │ │ │ ├── component-bind │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── component.json │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── component-emitter │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── bower.json │ │ │ │ │ ├── component.json │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── debug │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── debug.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ │ └── debug.js │ │ │ │ │ └── package.json │ │ │ │ ├── engine.io-client │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── .zuul.yml │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── engine.io.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── socket.js │ │ │ │ │ │ ├── transport.js │ │ │ │ │ │ ├── transports │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── polling-jsonp.js │ │ │ │ │ │ │ ├── polling-xhr.js │ │ │ │ │ │ │ ├── polling.js │ │ │ │ │ │ │ └── websocket.js │ │ │ │ │ │ └── xmlhttprequest.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── .bin │ │ │ │ │ │ │ └── wscat │ │ │ │ │ │ ├── component-inherit │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ └── inherit.js │ │ │ │ │ │ ├── debug │ │ │ │ │ │ │ ├── .jshintrc │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── browser.js │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ ├── debug.js │ │ │ │ │ │ │ ├── node.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ └── ms │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ ├── engine.io-parser │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── .zuul.yml │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ ├── browser.js │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ └── keys.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ ├── after │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ ├── LICENCE │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ │ └── after-test.js │ │ │ │ │ │ │ │ ├── arraybuffer.slice │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ │ └── slice-buffer.js │ │ │ │ │ │ │ │ ├── base64-arraybuffer │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ ├── LICENSE-MIT │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── grunt.js │ │ │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ │ │ └── base64-arraybuffer.js │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ │ └── base64-arraybuffer_test.js │ │ │ │ │ │ │ │ ├── blob │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── .zuul.yml │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ ├── has-binary │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── fixtures │ │ │ │ │ │ │ │ │ │ └── big.json │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ │ └── isarray │ │ │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ │ │ ├── build │ │ │ │ │ │ │ │ │ │ │ └── build.js │ │ │ │ │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ │ └── utf8 │ │ │ │ │ │ │ │ │ ├── .gitattributes │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ ├── Gruntfile.js │ │ │ │ │ │ │ │ │ ├── LICENSE-GPL.txt │ │ │ │ │ │ │ │ │ ├── LICENSE-MIT.txt │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── bower.json │ │ │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ │ │ ├── coverage │ │ │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ │ │ ├── prettify.css │ │ │ │ │ │ │ │ │ ├── prettify.js │ │ │ │ │ │ │ │ │ └── utf8.js │ │ │ │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ │ │ │ └── utf8.js.html │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ ├── tests │ │ │ │ │ │ │ │ │ ├── generate-test-data.py │ │ │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ │ │ └── tests.js │ │ │ │ │ │ │ │ │ ├── utf8.js │ │ │ │ │ │ │ │ │ └── x.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ ├── has-cors │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ └── global │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ │ │ ├── mocha.css │ │ │ │ │ │ │ │ │ ├── mocha.js │ │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ ├── parsejson │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ └── better-assert │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ │ │ ├── example.js │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ └── callsite │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ ├── parseqs │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ └── better-assert │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ │ │ ├── example.js │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ └── callsite │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ ├── parseuri │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ └── better-assert │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ │ │ ├── example.js │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ └── callsite │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ ├── ws │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── bench │ │ │ │ │ │ │ │ ├── parser.benchmark.js │ │ │ │ │ │ │ │ ├── sender.benchmark.js │ │ │ │ │ │ │ │ ├── speed.js │ │ │ │ │ │ │ │ └── util.js │ │ │ │ │ │ │ ├── bin │ │ │ │ │ │ │ │ └── wscat │ │ │ │ │ │ │ ├── binding.gyp │ │ │ │ │ │ │ ├── build │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ ├── Release │ │ │ │ │ │ │ │ │ ├── .deps │ │ │ │ │ │ │ │ │ │ └── Release │ │ │ │ │ │ │ │ │ │ │ ├── bufferutil.node.d │ │ │ │ │ │ │ │ │ │ │ ├── obj.target │ │ │ │ │ │ │ │ │ │ │ ├── bufferutil │ │ │ │ │ │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ │ │ │ │ │ └── bufferutil.o.d │ │ │ │ │ │ │ │ │ │ │ └── validation │ │ │ │ │ │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ │ │ │ │ └── validation.o.d │ │ │ │ │ │ │ │ │ │ │ └── validation.node.d │ │ │ │ │ │ │ │ │ ├── bufferutil.node │ │ │ │ │ │ │ │ │ ├── linker.lock │ │ │ │ │ │ │ │ │ ├── obj.target │ │ │ │ │ │ │ │ │ │ ├── bufferutil │ │ │ │ │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ │ │ │ │ └── bufferutil.o │ │ │ │ │ │ │ │ │ │ └── validation │ │ │ │ │ │ │ │ │ │ │ └── src │ │ │ │ │ │ │ │ │ │ │ └── validation.o │ │ │ │ │ │ │ │ │ └── validation.node │ │ │ │ │ │ │ │ ├── binding.Makefile │ │ │ │ │ │ │ │ ├── bufferutil.target.mk │ │ │ │ │ │ │ │ ├── config.gypi │ │ │ │ │ │ │ │ ├── gyp-mac-tool │ │ │ │ │ │ │ │ └── validation.target.mk │ │ │ │ │ │ │ ├── builderror.log │ │ │ │ │ │ │ ├── doc │ │ │ │ │ │ │ │ └── ws.md │ │ │ │ │ │ │ ├── examples │ │ │ │ │ │ │ │ ├── fileapi │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ ├── public │ │ │ │ │ │ │ │ │ │ ├── app.js │ │ │ │ │ │ │ │ │ │ ├── index.html │ │ │ │ │ │ │ │ │ │ └── uploader.js │ │ │ │ │ │ │ │ │ └── server.js │ │ │ │ │ │ │ │ ├── serverstats-express_3 │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ ├── public │ │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ │ └── server.js │ │ │ │ │ │ │ │ ├── serverstats │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ ├── public │ │ │ │ │ │ │ │ │ │ └── index.html │ │ │ │ │ │ │ │ │ └── server.js │ │ │ │ │ │ │ │ └── ssl.js │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ ├── BufferPool.js │ │ │ │ │ │ │ │ ├── BufferUtil.fallback.js │ │ │ │ │ │ │ │ ├── BufferUtil.js │ │ │ │ │ │ │ │ ├── ErrorCodes.js │ │ │ │ │ │ │ │ ├── Receiver.hixie.js │ │ │ │ │ │ │ │ ├── Receiver.js │ │ │ │ │ │ │ │ ├── Sender.hixie.js │ │ │ │ │ │ │ │ ├── Sender.js │ │ │ │ │ │ │ │ ├── Validation.fallback.js │ │ │ │ │ │ │ │ ├── Validation.js │ │ │ │ │ │ │ │ ├── WebSocket.js │ │ │ │ │ │ │ │ ├── WebSocketServer.js │ │ │ │ │ │ │ │ └── browser.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ ├── commander │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ │ │ └── commander.js │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ │ ├── nan │ │ │ │ │ │ │ │ │ ├── .index.js │ │ │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── nan.h │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ │ ├── options │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ │ │ └── options.js │ │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ │ └── tinycolor │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ │ │ ├── example.js │ │ │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ │ │ └── tinycolor.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ ├── src │ │ │ │ │ │ │ │ ├── bufferutil.cc │ │ │ │ │ │ │ │ └── validation.cc │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ ├── BufferPool.test.js │ │ │ │ │ │ │ │ ├── Receiver.hixie.test.js │ │ │ │ │ │ │ │ ├── Receiver.test.js │ │ │ │ │ │ │ │ ├── Sender.hixie.test.js │ │ │ │ │ │ │ │ ├── Sender.test.js │ │ │ │ │ │ │ │ ├── Validation.test.js │ │ │ │ │ │ │ │ ├── WebSocket.integration.js │ │ │ │ │ │ │ │ ├── WebSocket.test.js │ │ │ │ │ │ │ │ ├── WebSocketServer.test.js │ │ │ │ │ │ │ │ ├── autobahn-server.js │ │ │ │ │ │ │ │ ├── autobahn.js │ │ │ │ │ │ │ │ ├── fixtures │ │ │ │ │ │ │ │ ├── agent1-cert.pem │ │ │ │ │ │ │ │ ├── agent1-key.pem │ │ │ │ │ │ │ │ ├── ca1-cert.pem │ │ │ │ │ │ │ │ ├── ca1-key.pem │ │ │ │ │ │ │ │ ├── certificate.pem │ │ │ │ │ │ │ │ ├── key.pem │ │ │ │ │ │ │ │ ├── request.pem │ │ │ │ │ │ │ │ └── textfile │ │ │ │ │ │ │ │ ├── hybi-common.js │ │ │ │ │ │ │ │ └── testserver.js │ │ │ │ │ │ └── xmlhttprequest │ │ │ │ │ │ │ ├── LICENSE │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── autotest.watchr │ │ │ │ │ │ │ ├── example │ │ │ │ │ │ │ └── demo.js │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ └── XMLHttpRequest.js │ │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ │ └── tests │ │ │ │ │ │ │ ├── test-constants.js │ │ │ │ │ │ │ ├── test-events.js │ │ │ │ │ │ │ ├── test-exceptions.js │ │ │ │ │ │ │ ├── test-headers.js │ │ │ │ │ │ │ ├── test-redirect-302.js │ │ │ │ │ │ │ ├── test-redirect-303.js │ │ │ │ │ │ │ ├── test-redirect-307.js │ │ │ │ │ │ │ ├── test-request-methods.js │ │ │ │ │ │ │ ├── test-request-protocols.js │ │ │ │ │ │ │ └── testdata.txt │ │ │ │ │ └── package.json │ │ │ │ ├── has-binary │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── fixtures │ │ │ │ │ │ └── big.json │ │ │ │ │ ├── index.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── isarray │ │ │ │ │ │ │ ├── README.md │ │ │ │ │ │ │ ├── build │ │ │ │ │ │ │ └── build.js │ │ │ │ │ │ │ ├── component.json │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── package.json │ │ │ │ │ └── test.js │ │ │ │ ├── indexof │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── component.json │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── object-component │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── component.json │ │ │ │ │ ├── index.js │ │ │ │ │ ├── package.json │ │ │ │ │ └── test │ │ │ │ │ │ └── object.js │ │ │ │ ├── parseuri │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── index.js │ │ │ │ │ ├── node_modules │ │ │ │ │ │ └── better-assert │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ ├── example.js │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ └── callsite │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── History.md │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ └── package.json │ │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── package.json │ │ │ │ │ └── test.js │ │ │ │ └── to-array │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── LICENCE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ ├── package.json │ │ │ └── socket.io.js │ │ └── socket.io-parser │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── .zuul.yml │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── bench │ │ │ ├── bench.js │ │ │ └── index.js │ │ │ ├── bg.gif │ │ │ ├── binary.js │ │ │ ├── index.js │ │ │ ├── is-buffer.js │ │ │ ├── node_modules │ │ │ ├── benchmark │ │ │ │ ├── LICENSE.txt │ │ │ │ ├── README.md │ │ │ │ ├── benchmark.js │ │ │ │ ├── doc │ │ │ │ │ └── README.md │ │ │ │ ├── package.json │ │ │ │ └── test │ │ │ │ │ ├── run-test.sh │ │ │ │ │ └── test.js │ │ │ ├── component-emitter │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── History.md │ │ │ │ ├── Makefile │ │ │ │ ├── Readme.md │ │ │ │ ├── bower.json │ │ │ │ ├── component.json │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ ├── debug │ │ │ │ ├── Readme.md │ │ │ │ ├── debug.js │ │ │ │ ├── index.js │ │ │ │ ├── lib │ │ │ │ │ └── debug.js │ │ │ │ └── package.json │ │ │ ├── isarray │ │ │ │ ├── README.md │ │ │ │ ├── build │ │ │ │ │ └── build.js │ │ │ │ ├── component.json │ │ │ │ ├── index.js │ │ │ │ └── package.json │ │ │ └── json3 │ │ │ │ ├── .gitmodules │ │ │ │ ├── .jamignore │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── coverage │ │ │ │ ├── coverage.json │ │ │ │ ├── lcov-report │ │ │ │ │ ├── lib │ │ │ │ │ │ └── json3.js.html │ │ │ │ │ ├── prettify.css │ │ │ │ │ └── prettify.js │ │ │ │ └── lcov.info │ │ │ │ ├── lib │ │ │ │ ├── json3.js │ │ │ │ └── json3.min.js │ │ │ │ └── package.json │ │ │ └── package.json │ └── package.json └── underscore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── underscore-min.js │ ├── underscore-min.map │ └── underscore.js ├── npm-debug.log ├── package.json └── server.js /.gitignore: -------------------------------------------------------------------------------- 1 | */*/node_modules/* 2 | *.log 3 | run -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # dodgem 2 | -------------------------------------------------------------------------------- /app/assets.js: -------------------------------------------------------------------------------- 1 | //We need this file to load assets 2 | var Assets = { 3 | Audio : { 4 | //name : path 5 | "rain" : "assets/audio/rain.mp3", 6 | "shot" : "assets/audio/shot.mp3" 7 | }, 8 | 9 | Video : { 10 | 11 | }, 12 | 13 | Images : { 14 | 15 | }, 16 | 17 | General : { 18 | //whatever file you need to load 19 | } 20 | } -------------------------------------------------------------------------------- /app/config.js: -------------------------------------------------------------------------------- 1 | var config = {}; 2 | 3 | config = { 4 | physics_enabled : false, 5 | tween_enabled : true, 6 | cast_shadow : true, 7 | camera : { 8 | fov: 45, 9 | ratio: (window.innerWidth / window.innerHeight), 10 | near: 1, 11 | far: 5000 12 | } 13 | }; -------------------------------------------------------------------------------- /app/scripts/cube/mybox.js: -------------------------------------------------------------------------------- 1 | Game.script("mybox", { 2 | start : function() { 3 | this.lol = "LOL"; 4 | }, 5 | 6 | update : function() { 7 | this.mesh.rotation.x += 0.01; 8 | } 9 | }) -------------------------------------------------------------------------------- /assets/audio/rain.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/assets/audio/rain.mp3 -------------------------------------------------------------------------------- /assets/audio/shot.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/assets/audio/shot.mp3 -------------------------------------------------------------------------------- /css/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: #aca5a5; 3 | left: 0; 4 | top: 0; 5 | margin: 0; 6 | padding: 0; 7 | position: absolute; 8 | overflow: hidden !important; 9 | height: 100%; 10 | width: 100%; 11 | } 12 | 13 | canvas{ 14 | position:absolute; 15 | width:100%; 16 | height:100%; 17 | margin:0; 18 | padding:0; 19 | top:0; 20 | left:0; 21 | } 22 | 23 | #gui { 24 | width: 100%; 25 | height: 25px; 26 | position: absolute; 27 | z-index: 999; 28 | top: 0; 29 | left: 0; 30 | } 31 | 32 | #health { 33 | position: absolute; 34 | z-index: 999; 35 | width: 100%; 36 | background: rgba(255, 0, 0, 0.5); 37 | height: 25px; 38 | top: 0; 39 | left: 0; 40 | opacity: 0.8; 41 | color: white; 42 | border-bottom: 1px solid white; 43 | } 44 | 45 | #healthvalue { 46 | position: absolute; 47 | width: 100%; 48 | text-align: center; 49 | font-family: Helvetica; 50 | font-size: 18px; 51 | color: white; 52 | } 53 | 54 | #hurt { 55 | position: absolute; 56 | height: 100%; 57 | width: 100%; 58 | display: none; 59 | background: rgba(255, 0, 0, 0.8); 60 | } 61 | 62 | -------------------------------------------------------------------------------- /img/cube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/cube.png -------------------------------------------------------------------------------- /img/down_arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/down_arrow.png -------------------------------------------------------------------------------- /img/explosion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/explosion.png -------------------------------------------------------------------------------- /img/platform_base.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/platform_base.png -------------------------------------------------------------------------------- /img/platform_obstacle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/platform_obstacle.jpg -------------------------------------------------------------------------------- /img/platform_obstacle_cracked.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/platform_obstacle_cracked.jpg -------------------------------------------------------------------------------- /img/platform_pole.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/platform_pole.png -------------------------------------------------------------------------------- /img/platform_wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/platform_wall.png -------------------------------------------------------------------------------- /img/player_body.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/player_body.png -------------------------------------------------------------------------------- /img/player_gun.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/player_gun.png -------------------------------------------------------------------------------- /img/pointer_cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/pointer_cross.png -------------------------------------------------------------------------------- /img/smokeparticle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/smokeparticle.png -------------------------------------------------------------------------------- /img/starfield.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/img/starfield.png -------------------------------------------------------------------------------- /run: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | python -m SimpleHTTPServer 10000 -------------------------------------------------------------------------------- /server/node_modules/socket.io/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | .gitignore 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | 7 | git: 8 | depth: 1 9 | 10 | matrix: 11 | fast_finish: true 12 | allow_failures: 13 | - node_js: "0.11" 14 | 15 | notifications: 16 | irc: "irc.freenode.org#socket.io" 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014-2015 Automattic 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/Makefile: -------------------------------------------------------------------------------- 1 | 2 | REPORTER = dot 3 | 4 | test: 5 | @./node_modules/.bin/mocha \ 6 | --reporter $(REPORTER) \ 7 | --slow 200ms \ 8 | --bail 9 | 10 | test-cov: 11 | @./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \ 12 | --reporter $(REPORTER) \ 13 | test/ 14 | 15 | .PHONY: test 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib'); 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773 3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) 4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) 5 | 6 | # BIN directory 7 | BIN := $(THIS_DIR)/node_modules/.bin 8 | 9 | # applications 10 | NODE ?= $(shell which node) 11 | NPM ?= $(NODE) $(shell which npm) 12 | BROWSERIFY ?= $(NODE) $(BIN)/browserify 13 | 14 | all: dist/debug.js 15 | 16 | install: node_modules 17 | 18 | clean: 19 | @rm -rf node_modules dist 20 | 21 | dist: 22 | @mkdir -p $@ 23 | 24 | dist/debug.js: node_modules browser.js debug.js dist 25 | @$(BROWSERIFY) \ 26 | --standalone debug \ 27 | . > $@ 28 | 29 | node_modules: package.json 30 | @NODE_ENV= $(NPM) install 31 | @touch node_modules 32 | 33 | .PHONY: all install clean 34 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "2.1.0", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "browser.js", 12 | "scripts": [ 13 | "browser.js", 14 | "debug.js" 15 | ], 16 | "dependencies": { 17 | "guille/ms.js": "0.6.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/debug/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/debug/node_modules/ms/README.md: -------------------------------------------------------------------------------- 1 | # ms.js: miliseconds conversion utility 2 | 3 | ```js 4 | ms('1d') // 86400000 5 | ms('10h') // 36000000 6 | ms('2h') // 7200000 7 | ms('1m') // 60000 8 | ms('5s') // 5000 9 | ms('100') // 100 10 | ``` 11 | 12 | ```js 13 | ms(60000) // "1m" 14 | ms(2 * 60000) // "2m" 15 | ms(ms('10 hours')) // "10h" 16 | ``` 17 | 18 | ```js 19 | ms(60000, { long: true }) // "1 minute" 20 | ms(2 * 60000, { long: true }) // "2 minutes" 21 | ms(ms('10 hours', { long: true })) // "10 hours" 22 | ``` 23 | 24 | - Node/Browser compatible. Published as `ms` in NPM. 25 | - If a number is supplied to `ms`, a string with a unit is returned. 26 | - If a string that contains the number is supplied, it returns it as 27 | a number (e.g: it returns `100` for `'100'`). 28 | - If you pass a string with a number and a valid unit, the number of 29 | equivalent ms is returned. 30 | 31 | ## License 32 | 33 | MIT -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/debug/node_modules/ms/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ms", 3 | "version": "0.6.2", 4 | "description": "Tiny ms conversion utility", 5 | "repository": { 6 | "type": "git", 7 | "url": "git://github.com/guille/ms.js.git" 8 | }, 9 | "main": "./index", 10 | "devDependencies": { 11 | "mocha": "*", 12 | "expect.js": "*", 13 | "serve": "*" 14 | }, 15 | "component": { 16 | "scripts": { 17 | "ms/index.js": "index.js" 18 | } 19 | }, 20 | "bugs": { 21 | "url": "https://github.com/guille/ms.js/issues" 22 | }, 23 | "_id": "ms@0.6.2", 24 | "dist": { 25 | "shasum": "d89c2124c6fdc1353d65a8b77bf1aac4b193708c", 26 | "tarball": "http://registry.npmjs.org/ms/-/ms-0.6.2.tgz" 27 | }, 28 | "_from": "ms@0.6.2", 29 | "_npmVersion": "1.2.30", 30 | "_npmUser": { 31 | "name": "rauchg", 32 | "email": "rauchg@gmail.com" 33 | }, 34 | "maintainers": [ 35 | { 36 | "name": "rauchg", 37 | "email": "rauchg@gmail.com" 38 | } 39 | ], 40 | "directories": {}, 41 | "_shasum": "d89c2124c6fdc1353d65a8b77bf1aac4b193708c", 42 | "_resolved": "https://registry.npmjs.org/ms/-/ms-0.6.2.tgz" 43 | } 44 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/.npmignore: -------------------------------------------------------------------------------- 1 | examples 2 | node_modules 3 | test 4 | npm-debug.log 5 | coverage.html 6 | .gitignore 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.8" 5 | 6 | notifications: 7 | irc: "irc.freenode.org#socket.io" 8 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/Makefile: -------------------------------------------------------------------------------- 1 | 2 | TESTS = test/*.js 3 | BENCHMARKS = $(shell find bench -type f ! -name 'runner.js') 4 | REPORTER = dot 5 | 6 | test: 7 | @./node_modules/.bin/mocha \ 8 | --reporter $(REPORTER) \ 9 | --slow 500ms \ 10 | --bail \ 11 | --globals ___eio,document \ 12 | $(TESTS) 13 | 14 | test-cov: lib-cov 15 | EIO_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html 16 | 17 | lib-cov: 18 | jscoverage --no-highlight lib lib-cov 19 | 20 | bench: 21 | @node $(PROFILEFLAGS) bench/runner.js $(BENCHMARKS) 22 | 23 | .PHONY: test test-cov bench 24 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = process.env.EIO_COV 3 | ? require('./lib-cov/engine.io') 4 | : require('./lib/engine.io'); 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/lib/transports/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var XHR = require('./polling-xhr'); 7 | var JSONP = require('./polling-jsonp'); 8 | 9 | /** 10 | * Export transports. 11 | */ 12 | 13 | module.exports = exports = { 14 | polling: polling, 15 | websocket: require('./websocket') 16 | }; 17 | 18 | /** 19 | * Export upgrades map. 20 | */ 21 | 22 | exports.polling.upgradesTo = ['websocket']; 23 | 24 | /** 25 | * Polling polimorphic constructor. 26 | * 27 | * @api private 28 | */ 29 | 30 | function polling (req) { 31 | if ('string' == typeof req._query.j) { 32 | return new JSONP(req); 33 | } else { 34 | return new XHR(req); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/base64id/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/base64id/README.md: -------------------------------------------------------------------------------- 1 | base64id 2 | ======== 3 | 4 | Node.js module that generates a base64 id. 5 | 6 | Uses crypto.randomBytes when available, falls back to unsafe methods for node.js <= 0.4. 7 | 8 | To increase performance, random bytes are buffered to minimize the number of synchronous calls to crypto.randomBytes. 9 | 10 | ## Installation 11 | 12 | $ npm install mongoose 13 | 14 | ## Usage 15 | 16 | var base64id = require('base64id'); 17 | 18 | var id = base64id.generateId(); 19 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773 3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) 4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) 5 | 6 | # BIN directory 7 | BIN := $(THIS_DIR)/node_modules/.bin 8 | 9 | # applications 10 | NODE ?= $(shell which node) 11 | NPM ?= $(NODE) $(shell which npm) 12 | BROWSERIFY ?= $(NODE) $(BIN)/browserify 13 | 14 | all: dist/debug.js 15 | 16 | install: node_modules 17 | 18 | clean: 19 | @rm -rf node_modules dist 20 | 21 | dist: 22 | @mkdir -p $@ 23 | 24 | dist/debug.js: node_modules browser.js debug.js dist 25 | @$(BROWSERIFY) \ 26 | --standalone debug \ 27 | . > $@ 28 | 29 | node_modules: package.json 30 | @NODE_ENV= $(NPM) install 31 | @touch node_modules 32 | 33 | .PHONY: all install clean 34 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "1.0.3", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "browser.js", 12 | "scripts": [ 13 | "browser.js", 14 | "debug.js" 15 | ], 16 | "dependencies": { 17 | "guille/ms.js": "0.6.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/debug/node_modules/ms/README.md: -------------------------------------------------------------------------------- 1 | # ms.js: miliseconds conversion utility 2 | 3 | ```js 4 | ms('1d') // 86400000 5 | ms('10h') // 36000000 6 | ms('2h') // 7200000 7 | ms('1m') // 60000 8 | ms('5s') // 5000 9 | ms('100') // 100 10 | ``` 11 | 12 | ```js 13 | ms(60000) // "1m" 14 | ms(2 * 60000) // "2m" 15 | ms(ms('10 hours')) // "10h" 16 | ``` 17 | 18 | ```js 19 | ms(60000, { long: true }) // "1 minute" 20 | ms(2 * 60000, { long: true }) // "2 minutes" 21 | ms(ms('10 hours', { long: true })) // "10 hours" 22 | ``` 23 | 24 | - Node/Browser compatible. Published as `ms` in NPM. 25 | - If a number is supplied to `ms`, a string with a unit is returned. 26 | - If a string that contains the number is supplied, it returns it as 27 | a number (e.g: it returns `100` for `'100'`). 28 | - If you pass a string with a number and a valid unit, the number of 29 | equivalent ms is returned. 30 | 31 | ## License 32 | 33 | MIT -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | npm-debug.log 15 | node_modules/* 16 | 17 | test 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-bdd 2 | browsers: 3 | - name: chrome 4 | version: 29..latest 5 | - name: firefox 6 | version: latest 7 | - name: safari 8 | version: latest 9 | - name: ie 10 | version: 10 11 | platform: Windows 2012 12 | - name: ie 13 | version: 9 14 | version: [6..9, latest] 15 | - name: iphone 16 | version: oldest..latest 17 | - name: android 18 | version: latest 19 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014 Automattic 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/Makefile: -------------------------------------------------------------------------------- 1 | 2 | REPORTER = dot 3 | 4 | test: 5 | @if [ "x$(BROWSER_NAME)" = "x" ]; then make test-node; else make test-zuul; fi 6 | 7 | test-node: 8 | @./node_modules/.bin/mocha \ 9 | --reporter $(REPORTER) \ 10 | test/index.js 11 | 12 | test-zuul: 13 | @if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \ 14 | ./node_modules/zuul/bin/zuul \ 15 | --browser-name $(BROWSER_NAME) \ 16 | --browser-version $(BROWSER_VERSION) \ 17 | test/index.js; \ 18 | else \ 19 | ./node_modules/zuul/bin/zuul \ 20 | --browser-name $(BROWSER_NAME) \ 21 | --browser-version $(BROWSER_VERSION) \ 22 | --browser-platform "$(BROWSER_PLATFORM)" \ 23 | test/index.js; \ 24 | fi 25 | 26 | .PHONY: test 27 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/'); 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/lib/keys.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Gets the keys for an object. 4 | * 5 | * @return {Array} keys 6 | * @api private 7 | */ 8 | 9 | module.exports = Object.keys || function keys (obj){ 10 | var arr = []; 11 | var has = Object.prototype.hasOwnProperty; 12 | 13 | for (var i in obj) { 14 | if (has.call(obj, i)) { 15 | arr.push(i); 16 | } 17 | } 18 | return arr; 19 | }; 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .monitor 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.9 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/LICENCE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Raynos. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/after/index.js: -------------------------------------------------------------------------------- 1 | module.exports = after 2 | 3 | function after(count, callback, err_cb) { 4 | var bail = false 5 | err_cb = err_cb || noop 6 | proxy.count = count 7 | 8 | return (count === 0) ? callback() : proxy 9 | 10 | function proxy(err, result) { 11 | if (proxy.count <= 0) { 12 | throw new Error('after called too many times') 13 | } 14 | --proxy.count 15 | 16 | // after first error, rest are passed to err_cb 17 | if (err) { 18 | bail = true 19 | callback(err) 20 | // future error callbacks will go to error handler 21 | callback = err_cb 22 | } else if (proxy.count === 0 && !bail) { 23 | callback(null, result) 24 | } 25 | } 26 | } 27 | 28 | function noop() {} 29 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/arraybuffer.slice/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | lcov.info 3 | *.seed 4 | *.log 5 | *.csv 6 | *.dat 7 | *.out 8 | *.pid 9 | *.gz 10 | 11 | pids 12 | logs 13 | results 14 | build 15 | .grunt 16 | 17 | node_modules 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/arraybuffer.slice/Makefile: -------------------------------------------------------------------------------- 1 | 2 | REPORTER = dot 3 | 4 | test: 5 | @./node_modules/.bin/mocha \ 6 | --reporter $(REPORTER) 7 | 8 | .PHONY: test 9 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/arraybuffer.slice/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * An abstraction for slicing an arraybuffer even when 3 | * ArrayBuffer.prototype.slice is not supported 4 | * 5 | * @api public 6 | */ 7 | 8 | module.exports = function(arraybuffer, start, end) { 9 | var bytes = arraybuffer.byteLength; 10 | start = start || 0; 11 | end = end || bytes; 12 | 13 | if (arraybuffer.slice) { return arraybuffer.slice(start, end); } 14 | 15 | if (start < 0) { start += bytes; } 16 | if (end < 0) { end += bytes; } 17 | if (end > bytes) { end = bytes; } 18 | 19 | if (start >= bytes || start >= end || bytes === 0) { 20 | return new ArrayBuffer(0); 21 | } 22 | 23 | var abv = new Uint8Array(arraybuffer); 24 | var result = new Uint8Array(end - start); 25 | for (var i = start, ii = 0; i < end; i++, ii++) { 26 | result[ii] = abv[i]; 27 | } 28 | return result.buffer; 29 | }; 30 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/.travis.yml: -------------------------------------------------------------------------------- 1 | --- 2 | language: node_js 3 | node_js: 4 | - '0.10' 5 | before_script: 6 | - npm install 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/README.md: -------------------------------------------------------------------------------- 1 | # base64-arraybuffer 2 | 3 | [![Build Status](https://travis-ci.org/niklasvh/base64-arraybuffer.png)](https://travis-ci.org/niklasvh/base64-arraybuffer) 4 | 5 | Encode/decode base64 data into ArrayBuffers 6 | 7 | ## Getting Started 8 | Install the module with: `npm install base64-arraybuffer` 9 | 10 | ## API 11 | The library encodes and decodes base64 to and from ArrayBuffers 12 | 13 | - __encode(buffer)__ - Encodes `ArrayBuffer` into base64 string 14 | - __decode(str)__ - Decodes base64 string to `ArrayBuffer` 15 | 16 | ## Release History 17 | 18 | - 0.1.2 - Fix old format of typed arrays 19 | - 0.1.0 - Initial version, basic decode/encode base64 to and from ArrayBuffer 20 | 21 | ## License 22 | Copyright (c) 2012 Niklas von Hertzen 23 | Licensed under the MIT license. 24 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/base64-arraybuffer/grunt.js: -------------------------------------------------------------------------------- 1 | module.exports = function(grunt) { 2 | "use strict"; 3 | // Project configuration. 4 | grunt.initConfig({ 5 | pkg: '', 6 | test: { 7 | files: ['test/**/*.js'] 8 | }, 9 | lint: { 10 | files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js'] 11 | }, 12 | watch: { 13 | files: '', 14 | tasks: 'default' 15 | }, 16 | jshint: { 17 | options: { 18 | curly: true, 19 | eqeqeq: true, 20 | immed: true, 21 | latedef: true, 22 | newcap: true, 23 | noarg: true, 24 | sub: true, 25 | undef: true, 26 | boss: true, 27 | eqnull: true, 28 | node: true 29 | }, 30 | globals: { 31 | exports: true 32 | } 33 | } 34 | }); 35 | 36 | // Default task. 37 | grunt.registerTask('default', 'test'); 38 | 39 | }; -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | blob.js 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-bdd 2 | browsers: 3 | - name: chrome 4 | version: [8, latest] 5 | - name: ie 6 | version: 10 7 | - name: android 8 | version: latest 9 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/Makefile: -------------------------------------------------------------------------------- 1 | REPORTER = dot 2 | 3 | build: blob.js 4 | 5 | blob.js: 6 | @./node_modules/.bin/browserify --standalone blob index.js > blob.js 7 | 8 | test: 9 | @./node_modules/.bin/zuul -- test/index.js 10 | 11 | clean: 12 | rm blob.js 13 | 14 | .PHONY: test blob.js 15 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/blob/README.md: -------------------------------------------------------------------------------- 1 | Blob 2 | ==== 3 | 4 | A module that exports a constructor that uses window.Blob when available, and a BlobBuilder with any vendor prefix in other cases. If neither is available, it exports undefined. 5 | 6 | Usage: 7 | 8 | ```javascript 9 | var Blob = require('blob'); 10 | var b = new Blob(['hi', 'constructing', 'a', 'blob']); 11 | ``` 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | npm-debug.log 15 | node_modules 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.5 / 2014-09-04 3 | ================== 4 | 5 | * prevent browserify from bundling `Buffer` 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha test.js 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/README.md: -------------------------------------------------------------------------------- 1 | has-binarydata.js 2 | ================= 3 | 4 | Simple module to test if an object contains binary data 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/has-binary/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/.gitattributes: -------------------------------------------------------------------------------- 1 | # Automatically normalize line endings for all text-based files 2 | * text=auto 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/.npmignore: -------------------------------------------------------------------------------- 1 | # Generated test data file (> 100 MB) 2 | tests/data.json 3 | 4 | # JSON version of coverage report 5 | coverage/coverage.json 6 | 7 | # Installed npm modules 8 | node_modules 9 | 10 | # Folder view configuration files 11 | .DS_Store 12 | Desktop.ini 13 | 14 | # Thumbnail cache files 15 | ._* 16 | Thumbs.db 17 | 18 | # Files that might appear on external disks 19 | .Spotlight-V100 20 | .Trashes 21 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "utf8", 3 | "version": "2.0.0", 4 | "main": "utf8.js", 5 | "ignore": [ 6 | "coverage", 7 | "tests", 8 | ".*", 9 | "component.json", 10 | "Gruntfile.js", 11 | "node_modules", 12 | "package.json" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "utf8", 3 | "version": "2.0.0", 4 | "description": "A well-tested UTF-8 encoder/decoder written in JavaScript.", 5 | "repo": "mathiasbynens/utf8.js", 6 | "license": "MIT/GPL", 7 | "scripts": [ 8 | "utf8.js" 9 | ], 10 | "keywords": [ 11 | "charset", 12 | "encoding", 13 | "unicode", 14 | "utf8" 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/coverage/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} 2 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/engine.io-parser/node_modules/utf8/tests/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | utf8.js test suite 6 | 7 | 8 | 9 |
10 | 11 | 12 | 22 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | build 6 | 7 | bench 8 | doc 9 | examples 10 | test 11 | 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | npm_args: --ws:native 3 | node_js: 4 | - "0.8" 5 | - "0.10" 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/Makefile: -------------------------------------------------------------------------------- 1 | ALL_TESTS = $(shell find test/ -name '*.test.js') 2 | ALL_INTEGRATION = $(shell find test/ -name '*.integration.js') 3 | 4 | all: 5 | node-gyp configure build 6 | 7 | clean: 8 | node-gyp clean 9 | 10 | run-tests: 11 | @./node_modules/.bin/mocha \ 12 | -t 5000 \ 13 | -s 2400 \ 14 | $(TESTFLAGS) \ 15 | $(TESTS) 16 | 17 | run-integrationtests: 18 | @./node_modules/.bin/mocha \ 19 | -t 5000 \ 20 | -s 6000 \ 21 | $(TESTFLAGS) \ 22 | $(TESTS) 23 | 24 | test: 25 | @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests 26 | 27 | integrationtest: 28 | @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_INTEGRATION)" run-integrationtests 29 | 30 | benchmark: 31 | @node bench/sender.benchmark.js 32 | @node bench/parser.benchmark.js 33 | 34 | autobahn: 35 | @NODE_PATH=lib node test/autobahn.js 36 | 37 | autobahn-server: 38 | @NODE_PATH=lib node test/autobahn-server.js 39 | 40 | .PHONY: test 41 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'validation', 5 | 'include_dirs': ["Set(NanSymbol("BufferUtil"), t->GetFunction()); 3 | ^ 4 | ../node_modules/nan/nan.h:1048:51: note: 'NanSymbol' has been explicitly marked deprecated here 5 | NAN_DEPRECATED NAN_INLINE v8::Local NanSymbol( 6 | ^ 7 | 1 warning generated. 8 | ../src/validation.cc:112:17: warning: 'NanSymbol' is deprecated [-Wdeprecated-declarations] 9 | target->Set(NanSymbol("Validation"), t->GetFunction()); 10 | ^ 11 | ../node_modules/nan/nan.h:1048:51: note: 'NanSymbol' has been explicitly marked deprecated here 12 | NAN_DEPRECATED NAN_INLINE v8::Local NanSymbol( 13 | ^ 14 | 1 warning generated. 15 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/BufferUtil.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | try { 8 | module.exports = require('../build/Release/bufferutil'); 9 | } catch (e) { try { 10 | module.exports = require('../build/default/bufferutil'); 11 | } catch (e) { try { 12 | module.exports = require('./BufferUtil.fallback'); 13 | } catch (e) { 14 | console.error('bufferutil.node seems to not have been built. Run npm install.'); 15 | throw e; 16 | }}} 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/ErrorCodes.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | module.exports = { 8 | isValidErrorCode: function(code) { 9 | return (code >= 1000 && code <= 1011 && code != 1004 && code != 1005 && code != 1006) || 10 | (code >= 3000 && code <= 4999); 11 | }, 12 | 1000: 'normal', 13 | 1001: 'going away', 14 | 1002: 'protocol error', 15 | 1003: 'unsupported data', 16 | 1004: 'reserved', 17 | 1005: 'reserved for extensions', 18 | 1006: 'reserved for extensions', 19 | 1007: 'inconsistent or invalid data', 20 | 1008: 'policy violation', 21 | 1009: 'message too big', 22 | 1010: 'extension handshake missing', 23 | 1011: 'an unexpected condition prevented the request from being fulfilled', 24 | }; -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/Validation.fallback.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | module.exports.Validation = { 8 | isValidUTF8: function(buffer) { 9 | return true; 10 | } 11 | }; 12 | 13 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/Validation.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | try { 8 | module.exports = require('../build/Release/validation'); 9 | } catch (e) { try { 10 | module.exports = require('../build/default/validation'); 11 | } catch (e) { try { 12 | module.exports = require('./Validation.fallback'); 13 | } catch (e) { 14 | console.error('validation.node seems to not have been built. Run npm install.'); 15 | throw e; 16 | }}} 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/lib/browser.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var global = (function() { return this; })(); 7 | 8 | /** 9 | * WebSocket constructor. 10 | */ 11 | 12 | var WebSocket = global.WebSocket || global.MozWebSocket; 13 | 14 | /** 15 | * Module exports. 16 | */ 17 | 18 | module.exports = WebSocket ? ws : null; 19 | 20 | /** 21 | * WebSocket constructor. 22 | * 23 | * The third `opts` options object gets ignored in web browsers, since it's 24 | * non-standard, and throws a TypeError if passed to the constructor. 25 | * See: https://github.com/einaros/ws/issues/227 26 | * 27 | * @param {String} uri 28 | * @param {Array} protocols (optional) 29 | * @param {Object) opts (optional) 30 | * @api public 31 | */ 32 | 33 | function ws(uri, protocols, opts) { 34 | var instance; 35 | if (protocols) { 36 | instance = new WebSocket(uri, protocols); 37 | } else { 38 | instance = new WebSocket(uri); 39 | } 40 | return instance; 41 | } 42 | 43 | if (WebSocket) ws.prototype = WebSocket.prototype; 44 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/nan/.dntrc: -------------------------------------------------------------------------------- 1 | ## DNT config file 2 | ## see https://github.com/rvagg/dnt 3 | 4 | NODE_VERSIONS="\ 5 | v0.11.14 \ 6 | v0.11.13 \ 7 | v0.10.34 \ 8 | v0.10.33 \ 9 | v0.10.32 \ 10 | v0.10.31 \ 11 | v0.10.30 \ 12 | v0.10.29 \ 13 | v0.10.28 \ 14 | v0.10.26 \ 15 | v0.10.25 \ 16 | v0.10.24 \ 17 | v0.10.23 \ 18 | v0.10.22 \ 19 | v0.10.21 \ 20 | v0.10.20 \ 21 | v0.10.19 \ 22 | v0.8.28 \ 23 | v0.8.27 \ 24 | v0.8.26 \ 25 | v0.8.24 \ 26 | " 27 | IOJS_VERSIONS="\ 28 | v1.0.1-release 29 | " 30 | OUTPUT_PREFIX="nan-" 31 | TEST_CMD=" \ 32 | cd /dnt/ && \ 33 | npm install && \ 34 | node_modules/.bin/node-gyp --nodedir /usr/src/node/ rebuild --directory test && \ 35 | node_modules/.bin/tap --gc test/js/*-test.js \ 36 | " 37 | 38 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/nan/appveyor.yml: -------------------------------------------------------------------------------- 1 | # http://www.appveyor.com/docs/appveyor-yml 2 | 3 | # Test against these versions of Node.js. 4 | environment: 5 | matrix: 6 | - nodejs_version: "0.8" 7 | - nodejs_version: "0.10" 8 | - nodejs_version: "0.11" 9 | 10 | # Install scripts. (runs after repo cloning) 11 | install: 12 | # Get the latest stable version of Node 0.STABLE.latest 13 | - npm install npm 14 | - move node_modules npm 15 | - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) 16 | # Typical npm stuff. 17 | - npm/.bin/npm install 18 | - npm/.bin/npm run rebuild-tests 19 | 20 | # Post-install test scripts. 21 | test_script: 22 | # Output useful info for debugging. 23 | - node --version 24 | - npm --version 25 | - cmd: npm test 26 | 27 | # Don't actually build. 28 | build: off 29 | 30 | # Set build version format here instead of in the admin panel. 31 | version: "{build}" 32 | 33 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/nan/include_dirs.js: -------------------------------------------------------------------------------- 1 | console.log(require('path').relative('.', __dirname)); 2 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/options/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | build/ 6 | 7 | test 8 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/options/Makefile: -------------------------------------------------------------------------------- 1 | ALL_TESTS = $(shell find test/ -name '*.test.js') 2 | 3 | run-tests: 4 | @./node_modules/.bin/mocha \ 5 | -t 2000 \ 6 | $(TESTFLAGS) \ 7 | $(TESTS) 8 | 9 | test: 10 | @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests 11 | 12 | .PHONY: test 13 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/ultron/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | .tern-port 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/ultron/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | before_install: 7 | - "npm install -g npm@1.4.x" 8 | script: 9 | - "npm run test-travis" 10 | after_script: 11 | - "npm install coveralls@2.11.x && cat coverage/lcov.info | coveralls" 12 | notifications: 13 | irc: 14 | channels: 15 | - "irc.freenode.org#unshift" 16 | on_success: change 17 | on_failure: change 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/wscat/README.md: -------------------------------------------------------------------------------- 1 | # wscat 2 | 3 | WebSocket cat. 4 | 5 | ## Installation 6 | 7 | This module needs to be installed globally so use the `-g` flag when installing: 8 | 9 | ``` 10 | npm install -g wscat 11 | ``` 12 | 13 | ## Usage 14 | 15 | ``` 16 | $ wscat -c ws://echo.websocket.org 17 | connected (press CTRL+C to quit) 18 | > hi there 19 | < hi there 20 | > are you a happy parrot? 21 | < are you a happy parrot? 22 | ``` 23 | 24 | ## License 25 | 26 | MIT 27 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/wscat/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wscat", 3 | "version": "1.0.0", 4 | "description": "WebSocket cat", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/einaros/ws/tree/master/wscat" 12 | }, 13 | "keywords": [ 14 | "wscat", 15 | "websocket", 16 | "cat" 17 | ], 18 | "author": "Arnout Kazemier, Einar Otto Stangvik", 19 | "license": "MIT", 20 | "dependencies": { 21 | "commander": "2.5.x", 22 | "tinycolor": "0.0.x", 23 | "ws": "0.4.x" 24 | }, 25 | "bin": { 26 | "wscat": "./bin/wscat" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/has-binary-data/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | npm-debug.log 15 | node_modules 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/has-binary-data/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Kevin Roark 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/has-binary-data/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha test.js 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/has-binary-data/README.md: -------------------------------------------------------------------------------- 1 | has-binarydata.js 2 | ================= 3 | 4 | Simple module to test if an object contains binary data 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/has-binary-data/gen.js: -------------------------------------------------------------------------------- 1 | var ob = {}; 2 | 3 | var max = 5230; // just before call stack breaks 4 | var count = 0; 5 | 6 | function g(o) { 7 | if (count++ < max) { 8 | o.k = {}; 9 | g(o.k); 10 | } 11 | else { 12 | o.k = 'cool'; 13 | } 14 | } 15 | 16 | g(ob); 17 | console.log(JSON.stringify(ob)); 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/has-binary-data/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/has-binary-data/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/has-binary-data/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "has-binary-data", 3 | "version": "0.1.3", 4 | "description": "A function that takes anything in javascript and returns true if its argument contains binary data.", 5 | "dependencies": { 6 | "isarray": "0.0.1" 7 | }, 8 | "devDependencies": { 9 | "better-assert": "1.0.0", 10 | "mocha": "1.17.1" 11 | }, 12 | "author": { 13 | "name": "Kevin Roark" 14 | }, 15 | "license": "ISC", 16 | "_id": "has-binary-data@0.1.3", 17 | "dist": { 18 | "shasum": "8ebb18388b57f19a5231275a16fc18d51f379aae", 19 | "tarball": "http://registry.npmjs.org/has-binary-data/-/has-binary-data-0.1.3.tgz" 20 | }, 21 | "_from": "has-binary-data@0.1.3", 22 | "_npmVersion": "1.3.24", 23 | "_npmUser": { 24 | "name": "porkfat", 25 | "email": "ker2143@columbia.edu" 26 | }, 27 | "maintainers": [ 28 | { 29 | "name": "porkfat", 30 | "email": "ker2143@columbia.edu" 31 | } 32 | ], 33 | "directories": {}, 34 | "_shasum": "8ebb18388b57f19a5231275a16fc18d51f379aae", 35 | "_resolved": "https://registry.npmjs.org/has-binary-data/-/has-binary-data-0.1.3.tgz" 36 | } 37 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.3.1 / 2014-10-27 3 | ================== 4 | 5 | * bump parser version 6 | * fix room autopruning 7 | * add autoprunning of empty rooms 8 | * rooms are now created as objects 9 | * added the repository field. 10 | * updated the debug dependency. 11 | 12 | 0.3.0 / 2014-05-30 13 | ================== 14 | 15 | * bump `socket.io-parser` for binary ack fix 16 | 17 | 0.2.0 / 2014-03-14 18 | ================== 19 | 20 | * upgraded faster parser 21 | 22 | 0.1.0 / 2014-03-07 23 | ================== 24 | 25 | * initial commit 26 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # socket.io-adapter 3 | 4 | Default socket.io in-memory adapter class. 5 | 6 | ## How to use 7 | 8 | This module is not intended for end-user usage, but can be used as an 9 | interface to inheirt from from other adapters you might want to build. 10 | 11 | As an example of an adapter that builds on top of this, please take a look 12 | at [socket.io-redis](https://github.com/learnboost/socket.io-redis). 13 | 14 | ## License 15 | 16 | MIT 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773 3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) 4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) 5 | 6 | # BIN directory 7 | BIN := $(THIS_DIR)/node_modules/.bin 8 | 9 | # applications 10 | NODE ?= $(shell which node) 11 | NPM ?= $(NODE) $(shell which npm) 12 | BROWSERIFY ?= $(NODE) $(BIN)/browserify 13 | 14 | all: dist/debug.js 15 | 16 | install: node_modules 17 | 18 | clean: 19 | @rm -rf node_modules dist 20 | 21 | dist: 22 | @mkdir -p $@ 23 | 24 | dist/debug.js: node_modules browser.js debug.js dist 25 | @$(BROWSERIFY) \ 26 | --standalone debug \ 27 | . > $@ 28 | 29 | node_modules: package.json 30 | @NODE_ENV= $(NPM) install 31 | @touch node_modules 32 | 33 | .PHONY: all install clean 34 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "1.0.2", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "browser.js", 12 | "scripts": [ 13 | "browser.js", 14 | "debug.js" 15 | ], 16 | "dependencies": { 17 | "guille/ms.js": "0.6.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/debug/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/debug/node_modules/ms/README.md: -------------------------------------------------------------------------------- 1 | # ms.js: miliseconds conversion utility 2 | 3 | ```js 4 | ms('1d') // 86400000 5 | ms('10h') // 36000000 6 | ms('2h') // 7200000 7 | ms('1m') // 60000 8 | ms('5s') // 5000 9 | ms('100') // 100 10 | ``` 11 | 12 | ```js 13 | ms(60000) // "1m" 14 | ms(2 * 60000) // "2m" 15 | ms(ms('10 hours')) // "10h" 16 | ``` 17 | 18 | ```js 19 | ms(60000, { long: true }) // "1 minute" 20 | ms(2 * 60000, { long: true }) // "2 minutes" 21 | ms(ms('10 hours', { long: true })) // "10 hours" 22 | ``` 23 | 24 | - Node/Browser compatible. Published as `ms` in NPM. 25 | - If a number is supplied to `ms`, a string with a unit is returned. 26 | - If a string that contains the number is supplied, it returns it as 27 | a number (e.g: it returns `100` for `'100'`). 28 | - If you pass a string with a number and a valid unit, the number of 29 | equivalent ms is returned. 30 | 31 | ## License 32 | 33 | MIT -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/object-keys/.npmignore: -------------------------------------------------------------------------------- 1 | test/* 2 | 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/object-keys/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.11" 4 | - "0.10" 5 | - "0.9" 6 | - "0.8" 7 | - "0.6" 8 | - "0.4" 9 | before_install: 10 | - '[ "${TRAVIS_NODE_VERSION}" == "0.6" ] || npm install -g npm@~1.4.6' 11 | matrix: 12 | fast_finish: true 13 | allow_failures: 14 | - node_js: "0.11" 15 | - node_js: "0.9" 16 | - node_js: "0.6" 17 | - node_js: "0.4" 18 | 19 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/object-keys/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (C) 2013 Jordan Harband 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/object-keys/isArguments.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var toString = Object.prototype.toString; 4 | 5 | module.exports = function isArguments(value) { 6 | var str = toString.call(value); 7 | var isArguments = str === '[object Arguments]'; 8 | if (!isArguments) { 9 | isArguments = str !== '[object Array]' 10 | && value !== null 11 | && typeof value === 'object' 12 | && typeof value.length === 'number' 13 | && value.length >= 0 14 | && toString.call(value.callee) === '[object Function]'; 15 | } 16 | return isArguments; 17 | }; 18 | 19 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | components 4 | 5 | test 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | notifications: 5 | irc: irc.freenode.org##socket.io 6 | git: 7 | depth: 1 8 | env: 9 | global: 10 | - secure: 28HHk1J0H64KNjzmmlxG/Ro0EPuLnhO0rU+kZjjthDHj/FaugIsqjAVQ1Dl6heWV2/MlVzw6nDCyMNiGwiVk0ruZPQ0SYdAKLplrdMtzAihbU3xx+ULFQPLM3SoW0ZFCEpe8dWPGy4WdgW7aLByeel9TJb3vlhAu7p7AvrcO7Fs= 11 | - secure: rKEG0Cfw0vkw8thk63RHYG7h8XWYcBlvZ0w1IWpr2dAfnnLMi1palSTrBrFQc77flk7rN00zGIe76FhKydV9r4WWYAUYKPqo4k+9/FkpzjZlNtL49QRoNwC9jmJ8OeUwGowA13gZPyl/5P13wVaKCB0YrKnzz5LHo3Sp7So6J8U= 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-bdd 2 | browsers: 3 | - name: chrome 4 | version: 29..latest 5 | - name: firefox 6 | version: latest 7 | - name: safari 8 | version: latest 9 | - name: ie 10 | version: 10 11 | platform: Windows 2012 12 | - name: ie 13 | version: 9 14 | version: [6..9, latest] 15 | - name: iphone 16 | version: oldest..latest 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/Makefile: -------------------------------------------------------------------------------- 1 | 2 | REPORTER = dot 3 | 4 | test: 5 | @./node_modules/.bin/mocha \ 6 | --reporter $(REPORTER) \ 7 | --bail \ 8 | test/index.js 9 | @./node_modules/.bin/zuul -- test/index.js 10 | 11 | .PHONY: test 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/bench/bench.js: -------------------------------------------------------------------------------- 1 | var bencher = require('./index'); 2 | bencher(function(benchmark) { 3 | function logMean(test) { 4 | console.log(test.name + ' mean run time: ' + test.stats.mean); 5 | } 6 | 7 | for (var i = 0; i < benchmark.length; i++) { 8 | logMean(benchmark[i]); 9 | } 10 | }); 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/is-buffer.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = isBuf; 3 | 4 | /** 5 | * Returns true if obj is a buffer or an arraybuffer. 6 | * 7 | * @api private 8 | */ 9 | 10 | function isBuf(obj) { 11 | return (global.Buffer && global.Buffer.isBuffer(obj)) || 12 | (global.ArrayBuffer && obj instanceof ArrayBuffer); 13 | } 14 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/benchmark/test/run-test.sh: -------------------------------------------------------------------------------- 1 | cd "$(dirname "$0")" 2 | for cmd in rhino ringo narwhal node; do 3 | echo "" 4 | echo "Testing in $cmd..." 5 | $cmd test.js 6 | done 7 | echo "" 8 | echo "Testing in a browser..." 9 | open index.html 10 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/component-emitter/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/component-emitter/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.8" 3 | - "0.10" 4 | language: node_js -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/component-emitter/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/component-emitter/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "emitter", 3 | "description": "Event emitter", 4 | "keywords": [ 5 | "emitter", 6 | "events" 7 | ], 8 | "version": "1.1.2", 9 | "license": "MIT", 10 | "main": "index.js", 11 | "homepage": "https://github.com/component/emitter", 12 | "ignore": [ 13 | "**/.*", 14 | "node_modules", 15 | "bower_components", 16 | "test", 17 | "Makefile", 18 | "package.json", 19 | "component.json" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/component-emitter/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "emitter", 3 | "repo": "component/emitter", 4 | "description": "Event emitter", 5 | "keywords": [ 6 | "emitter", 7 | "events" 8 | ], 9 | "version": "1.1.2", 10 | "scripts": [ 11 | "index.js" 12 | ], 13 | "license": "MIT" 14 | } 15 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/debug/index.js: -------------------------------------------------------------------------------- 1 | if ('undefined' == typeof window) { 2 | module.exports = require('./lib/debug'); 3 | } else { 4 | module.exports = require('./debug'); 5 | } 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/json3/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "vendor/spec"] 2 | path = vendor/spec 3 | url = git://github.com/kitcambridge/spec.git 4 | [submodule "vendor/marked"] 5 | path = vendor/marked 6 | url = git://github.com/chjj/marked.git 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/json3/.jamignore: -------------------------------------------------------------------------------- 1 | .* 2 | build.js 3 | index.html 4 | component.json 5 | bower.json 6 | index.js 7 | benchmark 8 | page 9 | test 10 | vendor 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/json3/.npmignore: -------------------------------------------------------------------------------- 1 | bower.json 2 | component.json 3 | build.js 4 | index.html 5 | index.js 6 | .jshintrc 7 | 8 | benchmark 9 | page 10 | test 11 | vendor 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-adapter/node_modules/socket.io-parser/node_modules/json3/coverage/lcov-report/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} 2 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Guillermo Rauch 4 | 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/'); 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/lib/on.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module exports. 4 | */ 5 | 6 | module.exports = on; 7 | 8 | /** 9 | * Helper for subscriptions. 10 | * 11 | * @param {Object|EventEmitter} obj with `Emitter` mixin or `EventEmitter` 12 | * @param {String} event name 13 | * @param {Function} callback 14 | * @api public 15 | */ 16 | 17 | function on(obj, ev, fn) { 18 | obj.on(ev, fn); 19 | return { 20 | destroy: function(){ 21 | obj.removeListener(ev, fn); 22 | } 23 | }; 24 | } 25 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/backo2/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/backo2/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.1 / 2014-02-17 3 | ================== 4 | 5 | * go away decimal point 6 | * history 7 | 8 | 1.0.0 / 2014-02-17 9 | ================== 10 | 11 | * add jitter option 12 | * Initial commit 13 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/backo2/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter dot \ 6 | --bail 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/backo2/Readme.md: -------------------------------------------------------------------------------- 1 | # backo 2 | 3 | Simple exponential backoff because the others seem to have weird abstractions. 4 | 5 | ## Installation 6 | 7 | ``` 8 | $ npm install backo 9 | ``` 10 | 11 | ## Options 12 | 13 | - `min` initial timeout in milliseconds [100] 14 | - `max` max timeout [10000] 15 | - `jitter` [0] 16 | - `factor` [2] 17 | 18 | ## Example 19 | 20 | ```js 21 | var Backoff = require('backo'); 22 | var backoff = new Backoff({ min: 100, max: 20000 }); 23 | 24 | setTimeout(function(){ 25 | something.reconnect(); 26 | }, backoff.duration()); 27 | 28 | // later when something works 29 | backoff.reset() 30 | ``` 31 | 32 | # License 33 | 34 | MIT 35 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/backo2/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backo", 3 | "repo": "segmentio/backo", 4 | "dependencies": {}, 5 | "version": "1.0.1", 6 | "description": "simple backoff without the weird abstractions", 7 | "keywords": ["backoff"], 8 | "license": "MIT", 9 | "scripts": ["index.js"], 10 | "main": "index.js" 11 | } 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/backo2/test/index.js: -------------------------------------------------------------------------------- 1 | 2 | var Backoff = require('..'); 3 | var assert = require('assert'); 4 | 5 | describe('.duration()', function(){ 6 | it('should increase the backoff', function(){ 7 | var b = new Backoff; 8 | 9 | assert(100 == b.duration()); 10 | assert(200 == b.duration()); 11 | assert(400 == b.duration()); 12 | assert(800 == b.duration()); 13 | 14 | b.reset(); 15 | assert(100 == b.duration()); 16 | assert(200 == b.duration()); 17 | }) 18 | }) -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-bind/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-bind/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2014-05-27 3 | ================== 4 | 5 | * index: use slice ref (#7, @viatropos) 6 | * package: rename package to "component-bind" 7 | * package: add "repository" field (#6, @repoify) 8 | * package: add "component" section 9 | 10 | 0.0.1 / 2010-01-03 11 | ================== 12 | 13 | * Initial release 14 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-bind/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-bind/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bind", 3 | "version": "1.0.0", 4 | "description": "function binding utility", 5 | "keywords": [ 6 | "bind", 7 | "utility" 8 | ], 9 | "dependencies": {}, 10 | "scripts": [ 11 | "index.js" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-bind/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Slice reference. 3 | */ 4 | 5 | var slice = [].slice; 6 | 7 | /** 8 | * Bind `obj` to `fn`. 9 | * 10 | * @param {Object} obj 11 | * @param {Function|String} fn or string 12 | * @return {Function} 13 | * @api public 14 | */ 15 | 16 | module.exports = function(obj, fn){ 17 | if ('string' == typeof fn) fn = obj[fn]; 18 | if ('function' != typeof fn) throw new Error('bind() requires a function'); 19 | var args = slice.call(arguments, 2); 20 | return function(){ 21 | return fn.apply(obj, args.concat(slice.call(arguments))); 22 | } 23 | }; 24 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-emitter/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-emitter/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.8" 3 | - "0.10" 4 | language: node_js -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-emitter/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-emitter/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "emitter", 3 | "description": "Event emitter", 4 | "keywords": [ 5 | "emitter", 6 | "events" 7 | ], 8 | "version": "1.1.2", 9 | "license": "MIT", 10 | "main": "index.js", 11 | "homepage": "https://github.com/component/emitter", 12 | "ignore": [ 13 | "**/.*", 14 | "node_modules", 15 | "bower_components", 16 | "test", 17 | "Makefile", 18 | "package.json", 19 | "component.json" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/component-emitter/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "emitter", 3 | "repo": "component/emitter", 4 | "description": "Event emitter", 5 | "keywords": [ 6 | "emitter", 7 | "events" 8 | ], 9 | "version": "1.1.2", 10 | "scripts": [ 11 | "index.js" 12 | ], 13 | "license": "MIT" 14 | } 15 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/debug/index.js: -------------------------------------------------------------------------------- 1 | if ('undefined' == typeof window) { 2 | module.exports = require('./lib/debug'); 3 | } else { 4 | module.exports = require('./debug'); 5 | } 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/.npmignore: -------------------------------------------------------------------------------- 1 | support/ 2 | test 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-bdd 2 | server: ./test/support/server.js 3 | browsers: 4 | - name: chrome 5 | version: 29..latest 6 | # Firefox disabled for now because it can cause infinite wait loops when 7 | # running any tests 8 | # - name: firefox 9 | # version: latest 10 | - name: safari 11 | version: latest 12 | - name: ie 13 | version: 10 14 | platform: Windows 2012 15 | - name: ie 16 | version: [6..9, latest] 17 | - name: iphone 18 | version: oldest..latest 19 | - name: android 20 | version: oldest..latest 21 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/Makefile: -------------------------------------------------------------------------------- 1 | 2 | REPORTER = dot 3 | 4 | build: engine.io.js 5 | 6 | engine.io.js: lib/*.js lib/transports/*.js package.json 7 | @./support/browserify.sh > engine.io.js 8 | 9 | test: 10 | @if [ "x$(BROWSER_NAME)" = "x" ]; then make test-node; else make test-zuul; fi 11 | 12 | test-node: 13 | @./node_modules/.bin/mocha \ 14 | --reporter $(REPORTER) \ 15 | test/index.js 16 | 17 | test-zuul: 18 | @if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \ 19 | ./node_modules/zuul/bin/zuul \ 20 | --browser-name $(BROWSER_NAME) \ 21 | --browser-version $(BROWSER_VERSION) \ 22 | test/index.js; \ 23 | else \ 24 | ./node_modules/zuul/bin/zuul \ 25 | --browser-name $(BROWSER_NAME) \ 26 | --browser-version $(BROWSER_VERSION) \ 27 | --browser-platform "$(BROWSER_PLATFORM)" \ 28 | test/index.js; \ 29 | fi 30 | 31 | test-cov: 32 | @./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \ 33 | --require ./test/common \ 34 | --reporter $(REPORTER) \ 35 | $(TESTS) 36 | 37 | .PHONY: test build 38 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/'); 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/lib/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./socket'); 3 | 4 | /** 5 | * Exports parser 6 | * 7 | * @api public 8 | * 9 | */ 10 | module.exports.parser = require('engine.io-parser'); 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/.bin/wscat: -------------------------------------------------------------------------------- 1 | ../ws/bin/wscat -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-inherit/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | build 3 | node_modules 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-inherit/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.2 / 2012-09-03 3 | ================== 4 | 5 | * fix typo in package.json 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-inherit/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components index.js 3 | @component build 4 | 5 | components: 6 | @Component install 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | test: 12 | @node_modules/.bin/mocha \ 13 | --require should \ 14 | --reporter spec 15 | 16 | .PHONY: clean test 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-inherit/Readme.md: -------------------------------------------------------------------------------- 1 | # inherit 2 | 3 | Prototype inheritance utility. 4 | 5 | ## Installation 6 | 7 | ``` 8 | $ component install component/inherit 9 | ``` 10 | 11 | ## Example 12 | 13 | ```js 14 | var inherit = require('inherit'); 15 | 16 | function Human() {} 17 | function Woman() {} 18 | 19 | inherit(Woman, Human); 20 | ``` 21 | 22 | ## License 23 | 24 | MIT 25 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-inherit/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "inherit", 3 | "description": "Prototype inheritance utility", 4 | "version": "0.0.3", 5 | "keywords": ["inherit", "utility"], 6 | "dependencies": {}, 7 | "scripts": [ 8 | "index.js" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-inherit/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(a, b){ 3 | var fn = function(){}; 4 | fn.prototype = b.prototype; 5 | a.prototype = new fn; 6 | a.prototype.constructor = a; 7 | }; -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/component-inherit/test/inherit.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var inherit = require('..'); 7 | 8 | describe('inherit(a, b)', function(){ 9 | it('should inherit b\'s prototype', function(){ 10 | function Loki(){} 11 | function Animal(){} 12 | 13 | Animal.prototype.species = 'unknown'; 14 | 15 | inherit(Loki, Animal); 16 | 17 | var loki = new Loki; 18 | loki.species.should.equal('unknown'); 19 | loki.constructor.should.equal(Loki); 20 | }) 21 | }) -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773 3 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) 4 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) 5 | 6 | # BIN directory 7 | BIN := $(THIS_DIR)/node_modules/.bin 8 | 9 | # applications 10 | NODE ?= $(shell which node) 11 | NPM ?= $(NODE) $(shell which npm) 12 | BROWSERIFY ?= $(NODE) $(BIN)/browserify 13 | 14 | all: dist/debug.js 15 | 16 | install: node_modules 17 | 18 | clean: 19 | @rm -rf node_modules dist 20 | 21 | dist: 22 | @mkdir -p $@ 23 | 24 | dist/debug.js: node_modules browser.js debug.js dist 25 | @$(BROWSERIFY) \ 26 | --standalone debug \ 27 | . > $@ 28 | 29 | node_modules: package.json 30 | @NODE_ENV= $(NPM) install 31 | @touch node_modules 32 | 33 | .PHONY: all install clean 34 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "1.0.4", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "browser.js", 12 | "scripts": [ 13 | "browser.js", 14 | "debug.js" 15 | ], 16 | "dependencies": { 17 | "guille/ms.js": "0.6.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/debug/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/debug/node_modules/ms/README.md: -------------------------------------------------------------------------------- 1 | # ms.js: miliseconds conversion utility 2 | 3 | ```js 4 | ms('1d') // 86400000 5 | ms('10h') // 36000000 6 | ms('2h') // 7200000 7 | ms('1m') // 60000 8 | ms('5s') // 5000 9 | ms('100') // 100 10 | ``` 11 | 12 | ```js 13 | ms(60000) // "1m" 14 | ms(2 * 60000) // "2m" 15 | ms(ms('10 hours')) // "10h" 16 | ``` 17 | 18 | ```js 19 | ms(60000, { long: true }) // "1 minute" 20 | ms(2 * 60000, { long: true }) // "2 minutes" 21 | ms(ms('10 hours', { long: true })) // "10 hours" 22 | ``` 23 | 24 | - Node/Browser compatible. Published as `ms` in NPM. 25 | - If a number is supplied to `ms`, a string with a unit is returned. 26 | - If a string that contains the number is supplied, it returns it as 27 | a number (e.g: it returns `100` for `'100'`). 28 | - If you pass a string with a number and a valid unit, the number of 29 | equivalent ms is returned. 30 | 31 | ## License 32 | 33 | MIT -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | npm-debug.log 15 | node_modules/* 16 | 17 | test 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-bdd 2 | browsers: 3 | - name: chrome 4 | version: 29..latest 5 | - name: firefox 6 | version: latest 7 | - name: safari 8 | version: latest 9 | - name: ie 10 | version: 10 11 | platform: Windows 2012 12 | - name: ie 13 | version: 9 14 | version: [6..9, latest] 15 | - name: iphone 16 | version: oldest..latest 17 | - name: android 18 | version: latest 19 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/Makefile: -------------------------------------------------------------------------------- 1 | 2 | REPORTER = dot 3 | 4 | test: 5 | @if [ "x$(BROWSER_NAME)" = "x" ]; then make test-node; else make test-zuul; fi 6 | 7 | test-node: 8 | @./node_modules/.bin/mocha \ 9 | --reporter $(REPORTER) \ 10 | test/index.js 11 | 12 | test-zuul: 13 | @if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \ 14 | ./node_modules/zuul/bin/zuul \ 15 | --browser-name $(BROWSER_NAME) \ 16 | --browser-version $(BROWSER_VERSION) \ 17 | test/index.js; \ 18 | else \ 19 | ./node_modules/zuul/bin/zuul \ 20 | --browser-name $(BROWSER_NAME) \ 21 | --browser-version $(BROWSER_VERSION) \ 22 | --browser-platform "$(BROWSER_PLATFORM)" \ 23 | test/index.js; \ 24 | fi 25 | 26 | .PHONY: test 27 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/'); 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/lib/keys.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Gets the keys for an object. 4 | * 5 | * @return {Array} keys 6 | * @api private 7 | */ 8 | 9 | module.exports = Object.keys || function keys (obj){ 10 | var arr = []; 11 | var has = Object.prototype.hasOwnProperty; 12 | 13 | for (var i in obj) { 14 | if (has.call(obj, i)) { 15 | arr.push(i); 16 | } 17 | } 18 | return arr; 19 | }; 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/after/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .monitor 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/after/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.9 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/after/LICENCE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Raynos. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/after/index.js: -------------------------------------------------------------------------------- 1 | module.exports = after 2 | 3 | function after(count, callback, err_cb) { 4 | var bail = false 5 | err_cb = err_cb || noop 6 | proxy.count = count 7 | 8 | return (count === 0) ? callback() : proxy 9 | 10 | function proxy(err, result) { 11 | if (proxy.count <= 0) { 12 | throw new Error('after called too many times') 13 | } 14 | --proxy.count 15 | 16 | // after first error, rest are passed to err_cb 17 | if (err) { 18 | bail = true 19 | callback(err) 20 | // future error callbacks will go to error handler 21 | callback = err_cb 22 | } else if (proxy.count === 0 && !bail) { 23 | callback(null, result) 24 | } 25 | } 26 | } 27 | 28 | function noop() {} 29 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/arraybuffer.slice/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | lcov.info 3 | *.seed 4 | *.log 5 | *.csv 6 | *.dat 7 | *.out 8 | *.pid 9 | *.gz 10 | 11 | pids 12 | logs 13 | results 14 | build 15 | .grunt 16 | 17 | node_modules 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/arraybuffer.slice/Makefile: -------------------------------------------------------------------------------- 1 | 2 | REPORTER = dot 3 | 4 | test: 5 | @./node_modules/.bin/mocha \ 6 | --reporter $(REPORTER) 7 | 8 | .PHONY: test 9 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/arraybuffer.slice/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * An abstraction for slicing an arraybuffer even when 3 | * ArrayBuffer.prototype.slice is not supported 4 | * 5 | * @api public 6 | */ 7 | 8 | module.exports = function(arraybuffer, start, end) { 9 | var bytes = arraybuffer.byteLength; 10 | start = start || 0; 11 | end = end || bytes; 12 | 13 | if (arraybuffer.slice) { return arraybuffer.slice(start, end); } 14 | 15 | if (start < 0) { start += bytes; } 16 | if (end < 0) { end += bytes; } 17 | if (end > bytes) { end = bytes; } 18 | 19 | if (start >= bytes || start >= end || bytes === 0) { 20 | return new ArrayBuffer(0); 21 | } 22 | 23 | var abv = new Uint8Array(arraybuffer); 24 | var result = new Uint8Array(end - start); 25 | for (var i = start, ii = 0; i < end; i++, ii++) { 26 | result[ii] = abv[i]; 27 | } 28 | return result.buffer; 29 | }; 30 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/base64-arraybuffer/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/base64-arraybuffer/.travis.yml: -------------------------------------------------------------------------------- 1 | --- 2 | language: node_js 3 | node_js: 4 | - '0.10' 5 | before_script: 6 | - npm install 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/base64-arraybuffer/README.md: -------------------------------------------------------------------------------- 1 | # base64-arraybuffer 2 | 3 | [![Build Status](https://travis-ci.org/niklasvh/base64-arraybuffer.png)](https://travis-ci.org/niklasvh/base64-arraybuffer) 4 | 5 | Encode/decode base64 data into ArrayBuffers 6 | 7 | ## Getting Started 8 | Install the module with: `npm install base64-arraybuffer` 9 | 10 | ## API 11 | The library encodes and decodes base64 to and from ArrayBuffers 12 | 13 | - __encode(buffer)__ - Encodes `ArrayBuffer` into base64 string 14 | - __decode(str)__ - Decodes base64 string to `ArrayBuffer` 15 | 16 | ## Release History 17 | 18 | - 0.1.2 - Fix old format of typed arrays 19 | - 0.1.0 - Initial version, basic decode/encode base64 to and from ArrayBuffer 20 | 21 | ## License 22 | Copyright (c) 2012 Niklas von Hertzen 23 | Licensed under the MIT license. 24 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/base64-arraybuffer/grunt.js: -------------------------------------------------------------------------------- 1 | module.exports = function(grunt) { 2 | "use strict"; 3 | // Project configuration. 4 | grunt.initConfig({ 5 | pkg: '', 6 | test: { 7 | files: ['test/**/*.js'] 8 | }, 9 | lint: { 10 | files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js'] 11 | }, 12 | watch: { 13 | files: '', 14 | tasks: 'default' 15 | }, 16 | jshint: { 17 | options: { 18 | curly: true, 19 | eqeqeq: true, 20 | immed: true, 21 | latedef: true, 22 | newcap: true, 23 | noarg: true, 24 | sub: true, 25 | undef: true, 26 | boss: true, 27 | eqnull: true, 28 | node: true 29 | }, 30 | globals: { 31 | exports: true 32 | } 33 | } 34 | }); 35 | 36 | // Default task. 37 | grunt.registerTask('default', 'test'); 38 | 39 | }; -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/blob/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | blob.js 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/blob/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-bdd 2 | browsers: 3 | - name: chrome 4 | version: [8, latest] 5 | - name: ie 6 | version: 10 7 | - name: android 8 | version: latest 9 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/blob/Makefile: -------------------------------------------------------------------------------- 1 | REPORTER = dot 2 | 3 | build: blob.js 4 | 5 | blob.js: 6 | @./node_modules/.bin/browserify --standalone blob index.js > blob.js 7 | 8 | test: 9 | @./node_modules/.bin/zuul -- test/index.js 10 | 11 | clean: 12 | rm blob.js 13 | 14 | .PHONY: test blob.js 15 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/blob/README.md: -------------------------------------------------------------------------------- 1 | Blob 2 | ==== 3 | 4 | A module that exports a constructor that uses window.Blob when available, and a BlobBuilder with any vendor prefix in other cases. If neither is available, it exports undefined. 5 | 6 | Usage: 7 | 8 | ```javascript 9 | var Blob = require('blob'); 10 | var b = new Blob(['hi', 'constructing', 'a', 'blob']); 11 | ``` 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/has-binary/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | npm-debug.log 15 | node_modules 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/has-binary/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.5 / 2014-09-04 3 | ================== 4 | 5 | * prevent browserify from bundling `Buffer` 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/has-binary/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha test.js 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/has-binary/README.md: -------------------------------------------------------------------------------- 1 | has-binarydata.js 2 | ================= 3 | 4 | Simple module to test if an object contains binary data 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/has-binary/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/has-binary/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/utf8/.gitattributes: -------------------------------------------------------------------------------- 1 | # Automatically normalize line endings for all text-based files 2 | * text=auto 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/utf8/.npmignore: -------------------------------------------------------------------------------- 1 | # Generated test data file (> 100 MB) 2 | tests/data.json 3 | 4 | # JSON version of coverage report 5 | coverage/coverage.json 6 | 7 | # Installed npm modules 8 | node_modules 9 | 10 | # Folder view configuration files 11 | .DS_Store 12 | Desktop.ini 13 | 14 | # Thumbnail cache files 15 | ._* 16 | Thumbs.db 17 | 18 | # Files that might appear on external disks 19 | .Spotlight-V100 20 | .Trashes 21 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/utf8/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "utf8", 3 | "version": "2.0.0", 4 | "main": "utf8.js", 5 | "ignore": [ 6 | "coverage", 7 | "tests", 8 | ".*", 9 | "component.json", 10 | "Gruntfile.js", 11 | "node_modules", 12 | "package.json" 13 | ] 14 | } 15 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/utf8/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "utf8", 3 | "version": "2.0.0", 4 | "description": "A well-tested UTF-8 encoder/decoder written in JavaScript.", 5 | "repo": "mathiasbynens/utf8.js", 6 | "license": "MIT/GPL", 7 | "scripts": [ 8 | "utf8.js" 9 | ], 10 | "keywords": [ 11 | "charset", 12 | "encoding", 13 | "unicode", 14 | "utf8" 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/utf8/coverage/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} 2 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/engine.io-parser/node_modules/utf8/tests/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | utf8.js test suite 6 | 7 | 8 | 9 |
10 | 11 | 12 | 22 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | build 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.2 / 2013-08-27 3 | ================== 4 | 5 | - explicitly use `global` instead of being implicit 6 | - pin "component/global" to v2.0.1 7 | 8 | 1.0.1 / 2013-08-23 9 | ================== 10 | 11 | - package: add "component" section 12 | 13 | 1.0.0 / 2013-08-22 14 | ================== 15 | 16 | - Initial release 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components index.js 3 | @component build --dev 4 | 5 | components: component.json 6 | @component install --dev 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | .PHONY: clean 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # has-cors 3 | 4 | Detects support for Cross-Origin Resource Sharing 5 | 6 | ## Installation 7 | 8 | Install with [component(1)](http://component.io): 9 | 10 | $ component install component/has-cors 11 | 12 | ## API 13 | 14 | Exports `true` if the user-agent supports CORS, or `false` otherwise. 15 | 16 | ``` js 17 | var hasCORS = require('has-cors'); 18 | console.log(hasCORS); 19 | // true 20 | ``` 21 | 22 | ## License 23 | 24 | MIT 25 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "has-cors", 3 | "repo": "component/has-cors", 4 | "description": "Detects support for Cross-Origin Resource Sharing", 5 | "version": "1.0.3", 6 | "keywords": [], 7 | "dependencies": { 8 | "component/global": "2.0.1" 9 | }, 10 | "development": {}, 11 | "license": "MIT", 12 | "main": "index.js", 13 | "scripts": [ 14 | "index.js" 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var global = require('global'); 7 | 8 | /** 9 | * Module exports. 10 | * 11 | * Logic borrowed from Modernizr: 12 | * 13 | * - https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cors.js 14 | */ 15 | 16 | try { 17 | module.exports = 'XMLHttpRequest' in global && 18 | 'withCredentials' in new global.XMLHttpRequest(); 19 | } catch (err) { 20 | // if XMLHttp support is disabled in IE then it will throw 21 | // when trying to create 22 | module.exports = false; 23 | } 24 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/node_modules/global/.npmignore: -------------------------------------------------------------------------------- 1 | /components 2 | /build 3 | /node_modules 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/node_modules/global/History.md: -------------------------------------------------------------------------------- 1 | 2 | 2.0.1 / 2013-08-23 3 | ================== 4 | 5 | - package: add "component" section 6 | 7 | 2.0.0 / 2013-08-22 8 | ================== 9 | 10 | - No more function invocation required, returns `global` directly 11 | 12 | 1.0.0 / 2013-08-22 13 | ================== 14 | 15 | - Initial release 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/node_modules/global/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components 3 | @component build --dev 4 | 5 | components: component.json 6 | @component install --dev 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | .PHONY: clean 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/node_modules/global/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # global 3 | 4 | Returns a reference to the `global` object 5 | 6 | ## Installation 7 | 8 | Install with [component(1)](http://component.io): 9 | 10 | $ component install component/global 11 | 12 | ## API 13 | 14 | ``` js 15 | var global = require('global'); 16 | ``` 17 | 18 | ## License 19 | 20 | MIT 21 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/node_modules/global/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "global", 3 | "repo": "component/global", 4 | "description": "Returns a reference to the `global` object", 5 | "version": "2.0.1", 6 | "keywords": [], 7 | "dependencies": {}, 8 | "development": { 9 | "component/assert": "*" 10 | }, 11 | "scripts": [ 12 | "index.js" 13 | ], 14 | "license": "MIT" 15 | } 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/node_modules/global/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Returns `this`. Execute this without a "context" (i.e. without it being 4 | * attached to an object of the left-hand side), and `this` points to the 5 | * "global" scope of the current JS execution. 6 | */ 7 | 8 | module.exports = (function () { return this; })(); 9 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/node_modules/global/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Mocha 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/has-cors/node_modules/global/test/test.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var assert = require('assert'); 7 | var global; 8 | 9 | try { 10 | // component 11 | global = require('global'); 12 | } catch (e) { 13 | // node.js 14 | global = require('../'); 15 | } 16 | 17 | describe('global', function () { 18 | it('should return the `global` object', function () { 19 | var str = String(global); 20 | assert('[object global]' == str || '[object Window]' == str); 21 | }); 22 | }); 23 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha test.js 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * JSON parse. 3 | * 4 | * @see Based on jQuery#parseJSON (MIT) and JSON2 5 | * @api private 6 | */ 7 | 8 | var rvalidchars = /^[\],:{}\s]*$/; 9 | var rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g; 10 | var rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g; 11 | var rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g; 12 | var rtrimLeft = /^\s+/; 13 | var rtrimRight = /\s+$/; 14 | 15 | module.exports = function parsejson(data) { 16 | if ('string' != typeof data || !data) { 17 | return null; 18 | } 19 | 20 | data = data.replace(rtrimLeft, '').replace(rtrimRight, ''); 21 | 22 | // Attempt to parse using the native JSON parser first 23 | if (global.JSON && JSON.parse) { 24 | return JSON.parse(data); 25 | } 26 | 27 | if (rvalidchars.test(data.replace(rvalidescape, '@') 28 | .replace(rvalidtokens, ']') 29 | .replace(rvalidbraces, ''))) { 30 | return (new Function('return ' + data))(); 31 | } 32 | }; -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-02-03 3 | ================== 4 | 5 | * Stop using the removed magic __stack global getter 6 | 7 | 0.1.0 / 2012-10-04 8 | ================== 9 | 10 | * add throwing of AssertionError for test frameworks etc 11 | 12 | 0.0.1 / 2010-01-03 13 | ================== 14 | 15 | * Initial release 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @echo "populate me" 4 | 5 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/example.js: -------------------------------------------------------------------------------- 1 | 2 | var assert = require('./'); 3 | 4 | test(); 5 | 6 | function test() { 7 | var user = { name: 'tobi' }; 8 | assert('tobi' == user.name); 9 | assert('number' == typeof user.age); 10 | } -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module dependencies. 3 | */ 4 | 5 | var AssertionError = require('assert').AssertionError 6 | , callsite = require('callsite') 7 | , fs = require('fs') 8 | 9 | /** 10 | * Expose `assert`. 11 | */ 12 | 13 | module.exports = process.env.NO_ASSERT 14 | ? function(){} 15 | : assert; 16 | 17 | /** 18 | * Assert the given `expr`. 19 | */ 20 | 21 | function assert(expr) { 22 | if (expr) return; 23 | 24 | var stack = callsite(); 25 | var call = stack[1]; 26 | var file = call.getFileName(); 27 | var lineno = call.getLineNumber(); 28 | var src = fs.readFileSync(file, 'utf8'); 29 | var line = src.split('\n')[lineno-1]; 30 | var src = line.match(/assert\((.*)\)/)[1]; 31 | 32 | var err = new AssertionError({ 33 | message: src, 34 | stackStartFunction: stack[0].getFunction() 35 | }); 36 | 37 | throw err; 38 | } 39 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/node_modules/callsite/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/node_modules/callsite/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-01-24 3 | ================== 4 | 5 | * remove lame magical getters 6 | 7 | 0.0.1 / 2010-01-03 8 | ================== 9 | 10 | * Initial release 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/node_modules/callsite/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should 5 | 6 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/node_modules/callsite/Readme.md: -------------------------------------------------------------------------------- 1 | # callstack 2 | 3 | Access to v8's "raw" `CallSite`s. 4 | 5 | ## Installation 6 | 7 | $ npm install callsite 8 | 9 | ## Example 10 | 11 | ```js 12 | var stack = require('callsite'); 13 | 14 | foo(); 15 | 16 | function foo() { 17 | bar(); 18 | } 19 | 20 | function bar() { 21 | baz(); 22 | } 23 | 24 | function baz() { 25 | console.log(); 26 | stack().forEach(function(site){ 27 | console.log(' \033[36m%s\033[90m in %s:%d\033[0m' 28 | , site.getFunctionName() || 'anonymous' 29 | , site.getFileName() 30 | , site.getLineNumber()); 31 | }); 32 | console.log(); 33 | } 34 | ``` 35 | 36 | ## Why? 37 | 38 | Because you can do weird, stupid, clever, wacky things such as: 39 | 40 | - [better-assert](https://github.com/visionmedia/better-assert) 41 | 42 | ## License 43 | 44 | MIT 45 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/node_modules/better-assert/node_modules/callsite/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(){ 3 | var orig = Error.prepareStackTrace; 4 | Error.prepareStackTrace = function(_, stack){ return stack; }; 5 | var err = new Error; 6 | Error.captureStackTrace(err, arguments.callee); 7 | var stack = err.stack; 8 | Error.prepareStackTrace = orig; 9 | return stack; 10 | }; 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "parsejson", 3 | "version": "0.0.1", 4 | "description": "Method that parses a JSON string and returns a JSON object", 5 | "scripts": { 6 | "test": "make test" 7 | }, 8 | "devDependencies": { 9 | "mocha": "1.17.1" 10 | }, 11 | "author": "", 12 | "license": "MIT", 13 | "dependencies": { 14 | "better-assert": "~1.0.0" 15 | }, 16 | "_id": "parsejson@0.0.1", 17 | "dist": { 18 | "shasum": "9b10c6c0d825ab589e685153826de0a3ba278bcc", 19 | "tarball": "http://registry.npmjs.org/parsejson/-/parsejson-0.0.1.tgz" 20 | }, 21 | "_from": "parsejson@0.0.1", 22 | "_npmVersion": "1.3.15", 23 | "_npmUser": { 24 | "name": "gal", 25 | "email": "koren@mit.edu" 26 | }, 27 | "maintainers": [ 28 | { 29 | "name": "gal", 30 | "email": "koren@mit.edu" 31 | } 32 | ], 33 | "directories": {}, 34 | "_shasum": "9b10c6c0d825ab589e685153826de0a3ba278bcc", 35 | "_resolved": "https://registry.npmjs.org/parsejson/-/parsejson-0.0.1.tgz" 36 | } 37 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parsejson/test.js: -------------------------------------------------------------------------------- 1 | var assert = require('better-assert'); 2 | var expect = require('expect.js'); 3 | var parsejson = require('./index.js'); 4 | 5 | describe('my suite', function(){ 6 | it('should parse a JSON string', function () { 7 | 8 | var jsonString = '{"users" :[{"first_name":"foo", "last_name":"bar"}],' + 9 | '"id" :40,' + 10 | '"cities":["los angeles", "new york", "boston"]}'; 11 | 12 | var jsonObj = parsejson(jsonString); 13 | expect(jsonObj.users[0].first_name).to.be("foo"); 14 | expect(jsonObj.users[0].last_name).to.be("bar"); 15 | expect(jsonObj.id).to.be(40); 16 | expect(jsonObj.cities[0]).to.be('los angeles'); 17 | expect(jsonObj.cities[1]).to.be('new york'); 18 | expect(jsonObj.cities[2]).to.be('boston'); 19 | 20 | }); 21 | }); 22 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha test.js 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Compiles a querystring 3 | * Returns string representation of the object 4 | * 5 | * @param {Object} 6 | * @api private 7 | */ 8 | 9 | exports.encode = function (obj) { 10 | var str = ''; 11 | 12 | for (var i in obj) { 13 | if (obj.hasOwnProperty(i)) { 14 | if (str.length) str += '&'; 15 | str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]); 16 | } 17 | } 18 | 19 | return str; 20 | }; 21 | 22 | /** 23 | * Parses a simple querystring into an object 24 | * 25 | * @param {String} qs 26 | * @api private 27 | */ 28 | 29 | exports.decode = function(qs){ 30 | var qry = {}; 31 | var pairs = qs.split('&'); 32 | for (var i = 0, l = pairs.length; i < l; i++) { 33 | var pair = pairs[i].split('='); 34 | qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]); 35 | } 36 | return qry; 37 | }; 38 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-02-03 3 | ================== 4 | 5 | * Stop using the removed magic __stack global getter 6 | 7 | 0.1.0 / 2012-10-04 8 | ================== 9 | 10 | * add throwing of AssertionError for test frameworks etc 11 | 12 | 0.0.1 / 2010-01-03 13 | ================== 14 | 15 | * Initial release 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @echo "populate me" 4 | 5 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/example.js: -------------------------------------------------------------------------------- 1 | 2 | var assert = require('./'); 3 | 4 | test(); 5 | 6 | function test() { 7 | var user = { name: 'tobi' }; 8 | assert('tobi' == user.name); 9 | assert('number' == typeof user.age); 10 | } -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module dependencies. 3 | */ 4 | 5 | var AssertionError = require('assert').AssertionError 6 | , callsite = require('callsite') 7 | , fs = require('fs') 8 | 9 | /** 10 | * Expose `assert`. 11 | */ 12 | 13 | module.exports = process.env.NO_ASSERT 14 | ? function(){} 15 | : assert; 16 | 17 | /** 18 | * Assert the given `expr`. 19 | */ 20 | 21 | function assert(expr) { 22 | if (expr) return; 23 | 24 | var stack = callsite(); 25 | var call = stack[1]; 26 | var file = call.getFileName(); 27 | var lineno = call.getLineNumber(); 28 | var src = fs.readFileSync(file, 'utf8'); 29 | var line = src.split('\n')[lineno-1]; 30 | var src = line.match(/assert\((.*)\)/)[1]; 31 | 32 | var err = new AssertionError({ 33 | message: src, 34 | stackStartFunction: stack[0].getFunction() 35 | }); 36 | 37 | throw err; 38 | } 39 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/node_modules/callsite/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/node_modules/callsite/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-01-24 3 | ================== 4 | 5 | * remove lame magical getters 6 | 7 | 0.0.1 / 2010-01-03 8 | ================== 9 | 10 | * Initial release 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/node_modules/callsite/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should 5 | 6 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/node_modules/callsite/Readme.md: -------------------------------------------------------------------------------- 1 | # callstack 2 | 3 | Access to v8's "raw" `CallSite`s. 4 | 5 | ## Installation 6 | 7 | $ npm install callsite 8 | 9 | ## Example 10 | 11 | ```js 12 | var stack = require('callsite'); 13 | 14 | foo(); 15 | 16 | function foo() { 17 | bar(); 18 | } 19 | 20 | function bar() { 21 | baz(); 22 | } 23 | 24 | function baz() { 25 | console.log(); 26 | stack().forEach(function(site){ 27 | console.log(' \033[36m%s\033[90m in %s:%d\033[0m' 28 | , site.getFunctionName() || 'anonymous' 29 | , site.getFileName() 30 | , site.getLineNumber()); 31 | }); 32 | console.log(); 33 | } 34 | ``` 35 | 36 | ## Why? 37 | 38 | Because you can do weird, stupid, clever, wacky things such as: 39 | 40 | - [better-assert](https://github.com/visionmedia/better-assert) 41 | 42 | ## License 43 | 44 | MIT 45 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/node_modules/better-assert/node_modules/callsite/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(){ 3 | var orig = Error.prepareStackTrace; 4 | Error.prepareStackTrace = function(_, stack){ return stack; }; 5 | var err = new Error; 6 | Error.captureStackTrace(err, arguments.callee); 7 | var stack = err.stack; 8 | Error.prepareStackTrace = orig; 9 | return stack; 10 | }; 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "parseqs", 3 | "version": "0.0.2", 4 | "description": "Provides methods for parsing a query string into an object, and vice versa.", 5 | "scripts": { 6 | "test": "make test" 7 | }, 8 | "devDependencies": { 9 | "mocha": "1.17.1" 10 | }, 11 | "author": "", 12 | "license": "MIT", 13 | "dependencies": { 14 | "better-assert": "~1.0.0" 15 | }, 16 | "_id": "parseqs@0.0.2", 17 | "dist": { 18 | "shasum": "9dfe70b2cddac388bde4f35b1f240fa58adbe6c7", 19 | "tarball": "http://registry.npmjs.org/parseqs/-/parseqs-0.0.2.tgz" 20 | }, 21 | "_from": "parseqs@0.0.2", 22 | "_npmVersion": "1.3.15", 23 | "_npmUser": { 24 | "name": "gal", 25 | "email": "koren@mit.edu" 26 | }, 27 | "maintainers": [ 28 | { 29 | "name": "gal", 30 | "email": "koren@mit.edu" 31 | } 32 | ], 33 | "directories": {}, 34 | "_shasum": "9dfe70b2cddac388bde4f35b1f240fa58adbe6c7", 35 | "_resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.2.tgz" 36 | } 37 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseqs/test.js: -------------------------------------------------------------------------------- 1 | var assert = require('better-assert'); 2 | var expect = require('expect.js'); 3 | var util = require('./index.js'); 4 | 5 | describe('querystring test suite', function(){ 6 | it('should parse a querystring and return an object', function () { 7 | 8 | // Single assignment 9 | var queryObj = util.decode("foo=bar"); 10 | expect(queryObj.foo).to.be("bar"); 11 | 12 | // Multiple assignments 13 | queryObj = util.decode("france=paris&germany=berlin"); 14 | expect(queryObj.france).to.be("paris"); 15 | expect(queryObj.germany).to.be("berlin"); 16 | 17 | // Assignments containing non-alphanumeric characters 18 | queryObj = util.decode("india=new%20delhi"); 19 | expect(queryObj.india).to.be("new delhi"); 20 | }); 21 | 22 | it('should construct a query string from an object', function () { 23 | expect(util.encode({ a: 'b' })).to.be('a=b'); 24 | expect(util.encode({ a: 'b', c: 'd' })).to.be('a=b&c=d'); 25 | expect(util.encode({ a: 'b', c: 'tobi rocks' })).to.be('a=b&c=tobi%20rocks'); 26 | }); 27 | }); 28 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/History.md: -------------------------------------------------------------------------------- 1 | 2 | n.n.n / 2014-02-09 3 | ================== 4 | 5 | * parseuri first commit 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha test.js 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-02-03 3 | ================== 4 | 5 | * Stop using the removed magic __stack global getter 6 | 7 | 0.1.0 / 2012-10-04 8 | ================== 9 | 10 | * add throwing of AssertionError for test frameworks etc 11 | 12 | 0.0.1 / 2010-01-03 13 | ================== 14 | 15 | * Initial release 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @echo "populate me" 4 | 5 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/example.js: -------------------------------------------------------------------------------- 1 | 2 | var assert = require('./'); 3 | 4 | test(); 5 | 6 | function test() { 7 | var user = { name: 'tobi' }; 8 | assert('tobi' == user.name); 9 | assert('number' == typeof user.age); 10 | } -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module dependencies. 3 | */ 4 | 5 | var AssertionError = require('assert').AssertionError 6 | , callsite = require('callsite') 7 | , fs = require('fs') 8 | 9 | /** 10 | * Expose `assert`. 11 | */ 12 | 13 | module.exports = process.env.NO_ASSERT 14 | ? function(){} 15 | : assert; 16 | 17 | /** 18 | * Assert the given `expr`. 19 | */ 20 | 21 | function assert(expr) { 22 | if (expr) return; 23 | 24 | var stack = callsite(); 25 | var call = stack[1]; 26 | var file = call.getFileName(); 27 | var lineno = call.getLineNumber(); 28 | var src = fs.readFileSync(file, 'utf8'); 29 | var line = src.split('\n')[lineno-1]; 30 | var src = line.match(/assert\((.*)\)/)[1]; 31 | 32 | var err = new AssertionError({ 33 | message: src, 34 | stackStartFunction: stack[0].getFunction() 35 | }); 36 | 37 | throw err; 38 | } 39 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-01-24 3 | ================== 4 | 5 | * remove lame magical getters 6 | 7 | 0.0.1 / 2010-01-03 8 | ================== 9 | 10 | * Initial release 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should 5 | 6 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/Readme.md: -------------------------------------------------------------------------------- 1 | # callstack 2 | 3 | Access to v8's "raw" `CallSite`s. 4 | 5 | ## Installation 6 | 7 | $ npm install callsite 8 | 9 | ## Example 10 | 11 | ```js 12 | var stack = require('callsite'); 13 | 14 | foo(); 15 | 16 | function foo() { 17 | bar(); 18 | } 19 | 20 | function bar() { 21 | baz(); 22 | } 23 | 24 | function baz() { 25 | console.log(); 26 | stack().forEach(function(site){ 27 | console.log(' \033[36m%s\033[90m in %s:%d\033[0m' 28 | , site.getFunctionName() || 'anonymous' 29 | , site.getFileName() 30 | , site.getLineNumber()); 31 | }); 32 | console.log(); 33 | } 34 | ``` 35 | 36 | ## Why? 37 | 38 | Because you can do weird, stupid, clever, wacky things such as: 39 | 40 | - [better-assert](https://github.com/visionmedia/better-assert) 41 | 42 | ## License 43 | 44 | MIT 45 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(){ 3 | var orig = Error.prepareStackTrace; 4 | Error.prepareStackTrace = function(_, stack){ return stack; }; 5 | var err = new Error; 6 | Error.captureStackTrace(err, arguments.callee); 7 | var stack = err.stack; 8 | Error.prepareStackTrace = orig; 9 | return stack; 10 | }; 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | build 6 | 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | npm_args: --ws:native 3 | node_js: 4 | - "0.6" 5 | - "0.8" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/Makefile: -------------------------------------------------------------------------------- 1 | ALL_TESTS = $(shell find test/ -name '*.test.js') 2 | ALL_INTEGRATION = $(shell find test/ -name '*.integration.js') 3 | 4 | all: 5 | node-gyp configure build 6 | 7 | clean: 8 | node-gyp clean 9 | 10 | run-tests: 11 | @./node_modules/.bin/mocha \ 12 | -t 2000 \ 13 | -s 2400 \ 14 | $(TESTFLAGS) \ 15 | $(TESTS) 16 | 17 | run-integrationtests: 18 | @./node_modules/.bin/mocha \ 19 | -t 5000 \ 20 | -s 6000 \ 21 | $(TESTFLAGS) \ 22 | $(TESTS) 23 | 24 | test: 25 | @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests 26 | 27 | integrationtest: 28 | @$(MAKE) NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_PATH=lib TESTS="$(ALL_INTEGRATION)" run-integrationtests 29 | 30 | benchmark: 31 | @node bench/sender.benchmark.js 32 | @node bench/parser.benchmark.js 33 | 34 | autobahn: 35 | @NODE_PATH=lib node test/autobahn.js 36 | 37 | autobahn-server: 38 | @NODE_PATH=lib node test/autobahn-server.js 39 | 40 | .PHONY: test 41 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'validation', 5 | 'include_dirs': [" 2 | 3 | 4 | 12 | 13 | 14 | 15 | 16 |

This example will upload an entire directory tree to the node.js server via a fast and persistent WebSocket connection.

17 |

Note that the example is Chrome only for now.

18 |

19 | Upload status: 20 |
Please select a directory to upload.
21 | 22 | 23 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/examples/serverstats-express_3/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "", 3 | "name": "serverstats", 4 | "version": "0.0.0", 5 | "repository": { 6 | "type": "git", 7 | "url": "git://github.com/einaros/ws.git" 8 | }, 9 | "engines": { 10 | "node": ">0.4.0" 11 | }, 12 | "dependencies": { 13 | "express": "~3.0.0" 14 | }, 15 | "devDependencies": {}, 16 | "optionalDependencies": {} 17 | } 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/examples/serverstats-express_3/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 26 | 27 | 28 | Server Stats
29 | RSS:

30 | Heap total:

31 | Heap used:

32 | 33 | 34 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/examples/serverstats-express_3/server.js: -------------------------------------------------------------------------------- 1 | var WebSocketServer = require('../../').Server 2 | , http = require('http') 3 | , express = require('express') 4 | , app = express(); 5 | 6 | app.use(express.static(__dirname + '/public')); 7 | 8 | var server = http.createServer(app); 9 | server.listen(8080); 10 | 11 | var wss = new WebSocketServer({server: server}); 12 | wss.on('connection', function(ws) { 13 | var id = setInterval(function() { 14 | ws.send(JSON.stringify(process.memoryUsage()), function() { /* ignore errors */ }); 15 | }, 100); 16 | console.log('started client interval'); 17 | ws.on('close', function() { 18 | console.log('stopping client interval'); 19 | clearInterval(id); 20 | }); 21 | }); 22 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/examples/serverstats/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "", 3 | "name": "serverstats", 4 | "version": "0.0.0", 5 | "repository": { 6 | "type": "git", 7 | "url": "git://github.com/einaros/ws.git" 8 | }, 9 | "engines": { 10 | "node": ">0.4.0" 11 | }, 12 | "dependencies": { 13 | "express": "2.x" 14 | }, 15 | "devDependencies": {}, 16 | "optionalDependencies": {} 17 | } 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/examples/serverstats/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 26 | 27 | 28 | Server Stats
29 | RSS:

30 | Heap total:

31 | Heap used:

32 | 33 | 34 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/examples/serverstats/server.js: -------------------------------------------------------------------------------- 1 | var WebSocketServer = require('../../').Server 2 | , http = require('http') 3 | , express = require('express') 4 | , app = express.createServer(); 5 | 6 | app.use(express.static(__dirname + '/public')); 7 | app.listen(8080); 8 | 9 | var wss = new WebSocketServer({server: app}); 10 | wss.on('connection', function(ws) { 11 | var id = setInterval(function() { 12 | ws.send(JSON.stringify(process.memoryUsage()), function() { /* ignore errors */ }); 13 | }, 100); 14 | console.log('started client interval'); 15 | ws.on('close', function() { 16 | console.log('stopping client interval'); 17 | clearInterval(id); 18 | }) 19 | }); 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | module.exports = require('./lib/WebSocket'); 8 | module.exports.Server = require('./lib/WebSocketServer'); 9 | module.exports.Sender = require('./lib/Sender'); 10 | module.exports.Receiver = require('./lib/Receiver'); 11 | 12 | module.exports.createServer = function (options, connectionListener) { 13 | var server = new module.exports.Server(options); 14 | if (typeof connectionListener === 'function') { 15 | server.on('connection', connectionListener); 16 | } 17 | return server; 18 | }; 19 | 20 | module.exports.connect = module.exports.createConnection = function (address, openListener) { 21 | var client = new module.exports(address); 22 | if (typeof openListener === 'function') { 23 | client.on('open', openListener); 24 | } 25 | return client; 26 | }; 27 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/BufferUtil.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | try { 8 | module.exports = require('../build/Release/bufferutil'); 9 | } catch (e) { try { 10 | module.exports = require('../build/default/bufferutil'); 11 | } catch (e) { try { 12 | module.exports = require('./BufferUtil.fallback'); 13 | } catch (e) { 14 | console.error('bufferutil.node seems to not have been built. Run npm install.'); 15 | throw e; 16 | }}} 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/ErrorCodes.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | module.exports = { 8 | isValidErrorCode: function(code) { 9 | return (code >= 1000 && code <= 1011 && code != 1004 && code != 1005 && code != 1006) || 10 | (code >= 3000 && code <= 4999); 11 | }, 12 | 1000: 'normal', 13 | 1001: 'going away', 14 | 1002: 'protocol error', 15 | 1003: 'unsupported data', 16 | 1004: 'reserved', 17 | 1005: 'reserved for extensions', 18 | 1006: 'reserved for extensions', 19 | 1007: 'inconsistent or invalid data', 20 | 1008: 'policy violation', 21 | 1009: 'message too big', 22 | 1010: 'extension handshake missing', 23 | 1011: 'an unexpected condition prevented the request from being fulfilled', 24 | }; -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/Validation.fallback.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | module.exports.Validation = { 8 | isValidUTF8: function(buffer) { 9 | return true; 10 | } 11 | }; 12 | 13 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/Validation.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | try { 8 | module.exports = require('../build/Release/validation'); 9 | } catch (e) { try { 10 | module.exports = require('../build/default/validation'); 11 | } catch (e) { try { 12 | module.exports = require('./Validation.fallback'); 13 | } catch (e) { 14 | console.error('validation.node seems to not have been built. Run npm install.'); 15 | throw e; 16 | }}} 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/lib/browser.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var global = (function() { return this; })(); 7 | 8 | /** 9 | * WebSocket constructor. 10 | */ 11 | 12 | var WebSocket = global.WebSocket || global.MozWebSocket; 13 | 14 | /** 15 | * Module exports. 16 | */ 17 | 18 | module.exports = WebSocket ? ws : null; 19 | 20 | /** 21 | * WebSocket constructor. 22 | * 23 | * The third `opts` options object gets ignored in web browsers, since it's 24 | * non-standard, and throws a TypeError if passed to the constructor. 25 | * See: https://github.com/einaros/ws/issues/227 26 | * 27 | * @param {String} uri 28 | * @param {Array} protocols (optional) 29 | * @param {Object) opts (optional) 30 | * @api public 31 | */ 32 | 33 | function ws(uri, protocols, opts) { 34 | var instance; 35 | if (protocols) { 36 | instance = new WebSocket(uri, protocols); 37 | } else { 38 | instance = new WebSocket(uri); 39 | } 40 | return instance; 41 | } 42 | 43 | if (WebSocket) ws.prototype = WebSocket.prototype; 44 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/commander/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/commander/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/commander/Makefile: -------------------------------------------------------------------------------- 1 | 2 | TESTS = $(shell find test/test.*.js) 3 | 4 | test: 5 | @./test/run $(TESTS) 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/commander/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/commander'); -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/nan/.index.js: -------------------------------------------------------------------------------- 1 | //noop -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/options/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | build/ 6 | 7 | test 8 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/options/Makefile: -------------------------------------------------------------------------------- 1 | ALL_TESTS = $(shell find test/ -name '*.test.js') 2 | 3 | run-tests: 4 | @./node_modules/.bin/mocha \ 5 | -t 2000 \ 6 | $(TESTFLAGS) \ 7 | $(TESTS) 8 | 9 | test: 10 | @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests 11 | 12 | .PHONY: test 13 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/tinycolor/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | build/ 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/tinycolor/README.md: -------------------------------------------------------------------------------- 1 | # tinycolor # 2 | 3 | This is a no-fuzz, barebone, zero muppetry color module for node.js. -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/tinycolor/example.js: -------------------------------------------------------------------------------- 1 | require('./tinycolor'); 2 | console.log('this should be red and have an underline!'.grey.underline); 3 | console.log('this should have a blue background!'.bgBlue); -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/Sender.test.js: -------------------------------------------------------------------------------- 1 | var Sender = require('../lib/Sender'); 2 | require('should'); 3 | 4 | describe('Sender', function() { 5 | describe('#frameAndSend', function() { 6 | it('does not modify a masked binary buffer', function() { 7 | var sender = new Sender({ write: function() {} }); 8 | var buf = new Buffer([1, 2, 3, 4, 5]); 9 | sender.frameAndSend(2, buf, true, true); 10 | buf[0].should.eql(1); 11 | buf[1].should.eql(2); 12 | buf[2].should.eql(3); 13 | buf[3].should.eql(4); 14 | buf[4].should.eql(5); 15 | }); 16 | 17 | it('does not modify a masked text buffer', function() { 18 | var sender = new Sender({ write: function() {} }); 19 | var text = 'hi there'; 20 | sender.frameAndSend(1, text, true, true); 21 | text.should.eql('hi there'); 22 | }); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/autobahn-server.js: -------------------------------------------------------------------------------- 1 | var WebSocketServer = require('../').Server; 2 | 3 | process.on('uncaughtException', function(err) { 4 | console.log('Caught exception: ', err, err.stack); 5 | }); 6 | 7 | process.on('SIGINT', function () { 8 | try { 9 | console.log('Updating reports and shutting down'); 10 | var ws = new WebSocket('ws://localhost:9001/updateReports?agent=ws'); 11 | ws.on('close', function() { 12 | process.exit(); 13 | }); 14 | } 15 | catch(e) { 16 | process.exit(); 17 | } 18 | }); 19 | 20 | var wss = new WebSocketServer({port: 8181}); 21 | wss.on('connection', function(ws) { 22 | console.log('new connection'); 23 | ws.on('message', function(data, flags) { 24 | ws.send(flags.buffer, {binary: flags.binary === true}); 25 | }); 26 | ws.on('error', function() { 27 | console.log('error', arguments); 28 | }); 29 | }); 30 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/fixtures/agent1-cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICbjCCAdcCCQCVvok5oeLpqzANBgkqhkiG9w0BAQUFADB6MQswCQYDVQQGEwJV 3 | UzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQKEwZKb3llbnQxEDAO 4 | BgNVBAsTB05vZGUuanMxDDAKBgNVBAMTA2NhMTEgMB4GCSqGSIb3DQEJARYRcnlA 5 | dGlueWNsb3Vkcy5vcmcwHhcNMTMwMzA4MDAzMDIyWhcNNDAwNzIzMDAzMDIyWjB9 6 | MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQK 7 | EwZKb3llbnQxEDAOBgNVBAsTB05vZGUuanMxDzANBgNVBAMTBmFnZW50MTEgMB4G 8 | CSqGSIb3DQEJARYRcnlAdGlueWNsb3Vkcy5vcmcwgZ8wDQYJKoZIhvcNAQEBBQAD 9 | gY0AMIGJAoGBAL6GwKosYb0Yc3Qo0OtQVlCJ4208Idw11ij+t2W5sfYbCil5tyQo 10 | jnhGM1CJhEXynQpXXwjKJuIeTQCkeUibTyFKa0bs8+li2FiGoKYbb4G81ovnqkmE 11 | 2iDVb8Gw3rrM4zeZ0ZdFnjMsAZac8h6+C4sB/pS9BiMOo6qTl15RQlcJAgMBAAEw 12 | DQYJKoZIhvcNAQEFBQADgYEAOtmLo8DwTPnI4wfQbQ3hWlTS/9itww6IsxH2ODt9 13 | ggB7wi7N3uAdIWRZ54ke0NEAO5CW1xNTwsWcxQbiHrDOqX1vfVCjIenI76jVEEap 14 | /Ay53ydHNBKdsKkib61Me14Mu0bA3lUul57VXwmH4NUEFB3w973Q60PschUhOEXj 15 | 7DY= 16 | -----END CERTIFICATE----- 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/fixtures/agent1-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXAIBAAKBgQC+hsCqLGG9GHN0KNDrUFZQieNtPCHcNdYo/rdlubH2Gwopebck 3 | KI54RjNQiYRF8p0KV18IyibiHk0ApHlIm08hSmtG7PPpYthYhqCmG2+BvNaL56pJ 4 | hNog1W/BsN66zOM3mdGXRZ4zLAGWnPIevguLAf6UvQYjDqOqk5deUUJXCQIDAQAB 5 | AoGANu/CBA+SCyVOvRK70u4yRTzNMAUjukxnuSBhH1rg/pajYnwvG6T6F6IeT72n 6 | P0gKkh3JUE6B0bds+p9yPUZTFUXghxjcF33wlIY44H6gFE4K5WutsFJ9c450wtuu 7 | 8rXZTsIg7lAXWjTFVmdtOEPetcGlO2Hpi1O7ZzkzHgB2w9ECQQDksCCYx78or1zY 8 | ZSokm8jmpIjG3VLKdvI9HAoJRN40ldnwFoigrFa1AHwsFtWNe8bKyVRPDoLDUjpB 9 | dkPWgweVAkEA1UfgqguQ2KIkbtp9nDBionu3QaajksrRHwIa8vdfRfLxszfHk2fh 10 | NGY3dkRZF8HUAbzYLrd9poVhCBAEjWekpQJASOM6AHfpnXYHCZF01SYx6hEW5wsz 11 | kARJQODm8f1ZNTlttO/5q/xBxn7ZFNRSTD3fJlL05B2j380ddC/Vf1FT4QJAP1BC 12 | GliqnBSuGhZUWYxni3KMeTm9rzL0F29pjpzutHYlWB2D6ndY/FQnvL0XcZ0Bka58 13 | womIDGnl3x3aLBwLXQJBAJv6h5CHbXHx7VyDJAcNfppAqZGcEaiVg8yf2F33iWy2 14 | FLthhJucx7df7SO2aw5h06bRDRAhb9br0R9/3mLr7RE= 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/fixtures/ca1-cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICazCCAdQCCQC9/g69HtxXRzANBgkqhkiG9w0BAQUFADB6MQswCQYDVQQGEwJV 3 | UzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQKEwZKb3llbnQxEDAO 4 | BgNVBAsTB05vZGUuanMxDDAKBgNVBAMTA2NhMTEgMB4GCSqGSIb3DQEJARYRcnlA 5 | dGlueWNsb3Vkcy5vcmcwHhcNMTMwMzA4MDAzMDIyWhcNNDAwNzIzMDAzMDIyWjB6 6 | MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQK 7 | EwZKb3llbnQxEDAOBgNVBAsTB05vZGUuanMxDDAKBgNVBAMTA2NhMTEgMB4GCSqG 8 | SIb3DQEJARYRcnlAdGlueWNsb3Vkcy5vcmcwgZ8wDQYJKoZIhvcNAQEBBQADgY0A 9 | MIGJAoGBAKxr1mARUcv7zaqx5y4AxJPK6c1jdbSg7StcL4vg8klaPAlfNO6o+/Cl 10 | w5CdQD3ukaVUwUOJ4T/+b3Xf7785XcWBC33GdjVQkfbHATJYcka7j7JDw3qev5Jk 11 | 1rAbRw48hF6rYlSGcx1mccAjoLoa3I8jgxCNAYHIjUQXgdmU893rAgMBAAEwDQYJ 12 | KoZIhvcNAQEFBQADgYEAis05yxjCtJRuv8uX/DK6TX/j9C9Lzp1rKDNFTaTZ0iRw 13 | KCw1EcNx4OXSj9gNblW4PWxpDvygrt1AmH9h2cb8K859NSHa9JOBFw6MA5C2A4Sj 14 | NQfNATqUl4T6cdORlcDEZwHtT8b6D4A6Er31G/eJF4Sen0TUFpjdjd+l9RBjHlo= 15 | -----END CERTIFICATE----- 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/fixtures/ca1-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIICxjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIFeWxJE1BrRECAggA 3 | MBQGCCqGSIb3DQMHBAgu9PlMSQ+BOASCAoDEZN2tX0xWo/N+Jg+PrvCrFDk3P+3x 4 | 5xG/PEDjtMCAWPBEwbnaYHDzYmhNcAmxzGqEHGMDiWYs46LbO560VS3uMvFbEWPo 5 | KYYVb13vkxl2poXdonCb5cHZA5GUYzTIVVJFptl4LHwBczHoMHtA4FqAhKlYvlWw 6 | EOrdLB8XcwMmGPFabbbGxno0+EWWM27uNjlogfoxj35mQqSW4rOlhZ460XjOB1Zx 7 | LjXMuZeONojkGYQRG5EUMchBoctQpCOM6cAi9r1B9BvtFCBpDV1c1zEZBzTEUd8o 8 | kLn6tjLmY+QpTdylFjEWc7U3ppLY/pkoTBv4r85a2sEMWqkhSJboLaTboWzDJcU3 9 | Ke61pMpovt/3yCUd3TKgwduVwwQtDVTlBe0p66aN9QVj3CrFy/bKAGO3vxlli24H 10 | aIjZf+OVoBY21ESlW3jLvNlBf7Ezf///2E7j4SCDLyZSFMTpFoAG/jDRyvi+wTKX 11 | Kh485Bptnip6DCSuoH4u2SkOqwz3gJS/6s02YKe4m311QT4Pzne5/FwOFaS/HhQg 12 | Xvyh2/d00OgJ0Y0PYQsHILPRgTUCKUXvj1O58opn3fxSacsPxIXwj6Z4FYAjUTaV 13 | 2B85k1lpant/JJEilDqMjqzx4pHZ/Z3Uto1lSM1JZs9SNL/0UR+6F0TXZTULVU9V 14 | w8jYzz4sPr7LEyrrTbzmjQgnQFVbhAN/eKgRZK/SpLjxpmBV5MfpbPKsPUZqT4UC 15 | 4nXa8a/NYUQ9e+QKK8enq9E599c2W442W7Z1uFRZTWReMx/lF8wwA6G8zOPG0bdj 16 | d+T5Gegzd5mvRiXMBklCo8RLxOOvgxun1n3PY4a63aH6mqBhdfhiLp5j 17 | -----END ENCRYPTED PRIVATE KEY----- 18 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/fixtures/certificate.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIICATCCAWoCCQDPufXH86n2QzANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJu 3 | bzETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0 4 | cyBQdHkgTHRkMB4XDTEyMDEwMTE0NDQwMFoXDTIwMDMxOTE0NDQwMFowRTELMAkG 5 | A1UEBhMCbm8xEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0 6 | IFdpZGdpdHMgUHR5IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAtrQ7 7 | +r//2iV/B6F+4boH0XqFn7alcV9lpjvAmwRXNKnxAoa0f97AjYPGNLKrjpkNXXhB 8 | JROIdbRbZnCNeC5fzX1a+JCo7KStzBXuGSZr27TtFmcV4H+9gIRIcNHtZmJLnxbJ 9 | sIhkGR8yVYdmJZe4eT5ldk1zoB1adgPF1hZhCBMCAwEAATANBgkqhkiG9w0BAQUF 10 | AAOBgQCeWBEHYJ4mCB5McwSSUox0T+/mJ4W48L/ZUE4LtRhHasU9hiW92xZkTa7E 11 | QLcoJKQiWfiLX2ysAro0NX4+V8iqLziMqvswnPzz5nezaOLE/9U/QvH3l8qqNkXu 12 | rNbsW1h/IO6FV8avWFYVFoutUwOaZ809k7iMh2F2JMgXQ5EymQ== 13 | -----END CERTIFICATE----- 14 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/fixtures/key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXAIBAAKBgQC2tDv6v//aJX8HoX7hugfReoWftqVxX2WmO8CbBFc0qfEChrR/ 3 | 3sCNg8Y0squOmQ1deEElE4h1tFtmcI14Ll/NfVr4kKjspK3MFe4ZJmvbtO0WZxXg 4 | f72AhEhw0e1mYkufFsmwiGQZHzJVh2Yll7h5PmV2TXOgHVp2A8XWFmEIEwIDAQAB 5 | AoGAAlVY8sHi/aE+9xT77twWX3mGHV0SzdjfDnly40fx6S1Gc7bOtVdd9DC7pk6l 6 | 3ENeJVR02IlgU8iC5lMHq4JEHPE272jtPrLlrpWLTGmHEqoVFv9AITPqUDLhB9Kk 7 | Hjl7h8NYBKbr2JHKICr3DIPKOT+RnXVb1PD4EORbJ3ooYmkCQQDfknUnVxPgxUGs 8 | ouABw1WJIOVgcCY/IFt4Ihf6VWTsxBgzTJKxn3HtgvE0oqTH7V480XoH0QxHhjLq 9 | DrgobWU9AkEA0TRJ8/ouXGnFEPAXjWr9GdPQRZ1Use2MrFjneH2+Sxc0CmYtwwqL 10 | Kr5kS6mqJrxprJeluSjBd+3/ElxURrEXjwJAUvmlN1OPEhXDmRHd92mKnlkyKEeX 11 | OkiFCiIFKih1S5Y/sRJTQ0781nyJjtJqO7UyC3pnQu1oFEePL+UEniRztQJAMfav 12 | AtnpYKDSM+1jcp7uu9BemYGtzKDTTAYfoiNF42EzSJiGrWJDQn4eLgPjY0T0aAf/ 13 | yGz3Z9ErbhMm/Ysl+QJBAL4kBxRT8gM4ByJw4sdOvSeCCANFq8fhbgm8pGWlCPb5 14 | JGmX3/GHFM8x2tbWMGpyZP1DLtiNEFz7eCGktWK5rqE= 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/fixtures/request.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIBhDCB7gIBADBFMQswCQYDVQQGEwJubzETMBEGA1UECAwKU29tZS1TdGF0ZTEh 3 | MB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIGfMA0GCSqGSIb3DQEB 4 | AQUAA4GNADCBiQKBgQC2tDv6v//aJX8HoX7hugfReoWftqVxX2WmO8CbBFc0qfEC 5 | hrR/3sCNg8Y0squOmQ1deEElE4h1tFtmcI14Ll/NfVr4kKjspK3MFe4ZJmvbtO0W 6 | ZxXgf72AhEhw0e1mYkufFsmwiGQZHzJVh2Yll7h5PmV2TXOgHVp2A8XWFmEIEwID 7 | AQABoAAwDQYJKoZIhvcNAQEFBQADgYEAjsUXEARgfxZNkMjuUcudgU2w4JXS0gGI 8 | JQ0U1LmU0vMDSKwqndMlvCbKzEgPbJnGJDI8D4MeINCJHa5Ceyb8c+jaJYUcCabl 9 | lQW5Psn3+eWp8ncKlIycDRj1Qk615XuXtV0fhkrgQM2ZCm9LaQ1O1Gd/CzLihLjF 10 | W0MmgMKMMRk= 11 | -----END CERTIFICATE REQUEST----- 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/xmlhttprequest/autotest.watchr: -------------------------------------------------------------------------------- 1 | def run_all_tests 2 | puts `clear` 3 | puts `node tests/test-constants.js` 4 | puts `node tests/test-headers.js` 5 | puts `node tests/test-request.js` 6 | end 7 | watch('.*.js') { run_all_tests } 8 | run_all_tests 9 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/xmlhttprequest/example/demo.js: -------------------------------------------------------------------------------- 1 | var sys = require('util'); 2 | var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; 3 | 4 | var xhr = new XMLHttpRequest(); 5 | 6 | xhr.onreadystatechange = function() { 7 | sys.puts("State: " + this.readyState); 8 | 9 | if (this.readyState == 4) { 10 | sys.puts("Complete.\nBody length: " + this.responseText.length); 11 | sys.puts("Body:\n" + this.responseText); 12 | } 13 | }; 14 | 15 | xhr.open("GET", "http://driverdan.com"); 16 | xhr.send(); 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/xmlhttprequest/tests/test-constants.js: -------------------------------------------------------------------------------- 1 | var sys = require("util") 2 | , assert = require("assert") 3 | , XMLHttpRequest = require("../lib/XMLHttpRequest").XMLHttpRequest 4 | , xhr = new XMLHttpRequest(); 5 | 6 | // Test constant values 7 | assert.equal(0, xhr.UNSENT); 8 | assert.equal(1, xhr.OPENED); 9 | assert.equal(2, xhr.HEADERS_RECEIVED); 10 | assert.equal(3, xhr.LOADING); 11 | assert.equal(4, xhr.DONE); 12 | 13 | sys.puts("done"); 14 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/xmlhttprequest/tests/test-request-protocols.js: -------------------------------------------------------------------------------- 1 | var sys = require("util") 2 | , assert = require("assert") 3 | , XMLHttpRequest = require("../lib/XMLHttpRequest").XMLHttpRequest 4 | , xhr; 5 | 6 | xhr = new XMLHttpRequest(); 7 | 8 | xhr.onreadystatechange = function() { 9 | if (this.readyState == 4) { 10 | assert.equal("Hello World", this.responseText); 11 | this.close(); 12 | runSync(); 13 | } 14 | }; 15 | 16 | // Async 17 | var url = "file://" + __dirname + "/testdata.txt"; 18 | xhr.open("GET", url); 19 | xhr.send(); 20 | 21 | // Sync 22 | var runSync = function() { 23 | xhr = new XMLHttpRequest(); 24 | 25 | xhr.onreadystatechange = function() { 26 | if (this.readyState == 4) { 27 | assert.equal("Hello World", this.responseText); 28 | this.close(); 29 | sys.puts("done"); 30 | } 31 | }; 32 | xhr.open("GET", url, false); 33 | xhr.send(); 34 | } 35 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/xmlhttprequest/tests/testdata.txt: -------------------------------------------------------------------------------- 1 | Hello World 2 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/has-binary/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | npm-debug.log 15 | node_modules 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/has-binary/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.6 / 2015-01-24 3 | ================== 4 | 5 | * fix "undefined function" bug when iterating 6 | an object created with Object.create(null) [gunta] 7 | 8 | 0.1.5 / 2014-09-04 9 | ================== 10 | 11 | * prevent browserify from bundling `Buffer` 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/has-binary/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Kevin Roark 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/has-binary/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha test.js 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/has-binary/README.md: -------------------------------------------------------------------------------- 1 | has-binarydata.js 2 | ================= 3 | 4 | Simple module to test if an object contains binary data 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/has-binary/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/has-binary/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/indexof/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | build 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/indexof/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components index.js 3 | @component build 4 | 5 | components: 6 | @Component install 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | .PHONY: clean 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/indexof/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # indexOf 3 | 4 | Lame indexOf thing, thanks microsoft 5 | 6 | ## Example 7 | 8 | ```js 9 | var index = require('indexof'); 10 | index(arr, obj); 11 | ``` 12 | 13 | ## License 14 | 15 | MIT -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/indexof/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "indexof", 3 | "description": "Microsoft sucks", 4 | "version": "0.0.1", 5 | "keywords": ["index", "array", "indexOf"], 6 | "dependencies": {}, 7 | "scripts": [ 8 | "index.js" 9 | ] 10 | } -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/indexof/index.js: -------------------------------------------------------------------------------- 1 | 2 | var indexOf = [].indexOf; 3 | 4 | module.exports = function(arr, obj){ 5 | if (indexOf) return arr.indexOf(obj); 6 | for (var i = 0; i < arr.length; ++i) { 7 | if (arr[i] === obj) return i; 8 | } 9 | return -1; 10 | }; -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/indexof/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "indexof", 3 | "description": "Microsoft sucks", 4 | "version": "0.0.1", 5 | "keywords": [ 6 | "index", 7 | "array", 8 | "indexOf" 9 | ], 10 | "dependencies": {}, 11 | "component": { 12 | "scripts": { 13 | "indexof/index.js": "index.js" 14 | } 15 | }, 16 | "_id": "indexof@0.0.1", 17 | "dist": { 18 | "shasum": "82dc336d232b9062179d05ab3293a66059fd435d", 19 | "tarball": "http://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz" 20 | }, 21 | "maintainers": [ 22 | { 23 | "name": "tjholowaychuk", 24 | "email": "tj@vision-media.ca" 25 | } 26 | ], 27 | "directories": {}, 28 | "_shasum": "82dc336d232b9062179d05ab3293a66059fd435d", 29 | "_from": "indexof@0.0.1", 30 | "_resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", 31 | "readme": "ERROR: No README data found!" 32 | } 33 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/object-component/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | build 3 | node_modules 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/object-component/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.3 / 2012-10-15 3 | ================== 4 | 5 | * package: added `component` namespace (fixes #1) 6 | 7 | 0.0.2 / 2012-09-20 8 | ================== 9 | 10 | * add code smell to `.merge()` 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/object-component/Makefile: -------------------------------------------------------------------------------- 1 | 2 | build: components index.js 3 | @component build 4 | 5 | components: 6 | @Component install 7 | 8 | clean: 9 | rm -fr build components template.js 10 | 11 | test: 12 | @./node_modules/.bin/mocha \ 13 | --require should \ 14 | --reporter spec 15 | 16 | .PHONY: clean test 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/object-component/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # object 3 | 4 | Object utils. 5 | 6 | ## API 7 | 8 | ### .keys(obj) 9 | 10 | Return the keys for `obj`. 11 | 12 | ### .values(obj) 13 | 14 | Return the values for `obj`. 15 | 16 | ### .length(obj) 17 | 18 | Return the number of keys for `obj`. 19 | 20 | ### .isEmpty(obj) 21 | 22 | Check if `obj` is empty. 23 | 24 | ### .merge(a, b) 25 | 26 | Merge object `b` into `a`, returns `a`. 27 | Precedence is given to `b`. 28 | 29 | ## License 30 | 31 | MIT -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/object-component/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "object", 3 | "description": "Object keys / values / length", 4 | "version": "0.0.3", 5 | "keywords": ["object", "keys", "utility"], 6 | "dependencies": {}, 7 | "scripts": [ 8 | "index.js" 9 | ] 10 | } -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/History.md: -------------------------------------------------------------------------------- 1 | 2 | n.n.n / 2014-02-09 3 | ================== 4 | 5 | * parseuri first commit 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha test.js 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Parses an URI 3 | * 4 | * @author Steven Levithan (MIT license) 5 | * @api private 6 | */ 7 | 8 | var re = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/; 9 | 10 | var parts = [ 11 | 'source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host' 12 | , 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor' 13 | ]; 14 | 15 | module.exports = function parseuri(str) { 16 | var m = re.exec(str || '') 17 | , uri = {} 18 | , i = 14; 19 | 20 | while (i--) { 21 | uri[parts[i]] = m[i] || ''; 22 | } 23 | 24 | return uri; 25 | }; 26 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-02-03 3 | ================== 4 | 5 | * Stop using the removed magic __stack global getter 6 | 7 | 0.1.0 / 2012-10-04 8 | ================== 9 | 10 | * add throwing of AssertionError for test frameworks etc 11 | 12 | 0.0.1 / 2010-01-03 13 | ================== 14 | 15 | * Initial release 16 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @echo "populate me" 4 | 5 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/example.js: -------------------------------------------------------------------------------- 1 | 2 | var assert = require('./'); 3 | 4 | test(); 5 | 6 | function test() { 7 | var user = { name: 'tobi' }; 8 | assert('tobi' == user.name); 9 | assert('number' == typeof user.age); 10 | } -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Module dependencies. 3 | */ 4 | 5 | var AssertionError = require('assert').AssertionError 6 | , callsite = require('callsite') 7 | , fs = require('fs') 8 | 9 | /** 10 | * Expose `assert`. 11 | */ 12 | 13 | module.exports = process.env.NO_ASSERT 14 | ? function(){} 15 | : assert; 16 | 17 | /** 18 | * Assert the given `expr`. 19 | */ 20 | 21 | function assert(expr) { 22 | if (expr) return; 23 | 24 | var stack = callsite(); 25 | var call = stack[1]; 26 | var file = call.getFileName(); 27 | var lineno = call.getLineNumber(); 28 | var src = fs.readFileSync(file, 'utf8'); 29 | var line = src.split('\n')[lineno-1]; 30 | var src = line.match(/assert\((.*)\)/)[1]; 31 | 32 | var err = new AssertionError({ 33 | message: src, 34 | stackStartFunction: stack[0].getFunction() 35 | }); 36 | 37 | throw err; 38 | } 39 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.0 / 2013-01-24 3 | ================== 4 | 5 | * remove lame magical getters 6 | 7 | 0.0.1 / 2010-01-03 8 | ================== 9 | 10 | * Initial release 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should 5 | 6 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/Readme.md: -------------------------------------------------------------------------------- 1 | # callstack 2 | 3 | Access to v8's "raw" `CallSite`s. 4 | 5 | ## Installation 6 | 7 | $ npm install callsite 8 | 9 | ## Example 10 | 11 | ```js 12 | var stack = require('callsite'); 13 | 14 | foo(); 15 | 16 | function foo() { 17 | bar(); 18 | } 19 | 20 | function bar() { 21 | baz(); 22 | } 23 | 24 | function baz() { 25 | console.log(); 26 | stack().forEach(function(site){ 27 | console.log(' \033[36m%s\033[90m in %s:%d\033[0m' 28 | , site.getFunctionName() || 'anonymous' 29 | , site.getFileName() 30 | , site.getLineNumber()); 31 | }); 32 | console.log(); 33 | } 34 | ``` 35 | 36 | ## Why? 37 | 38 | Because you can do weird, stupid, clever, wacky things such as: 39 | 40 | - [better-assert](https://github.com/visionmedia/better-assert) 41 | 42 | ## License 43 | 44 | MIT 45 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/node_modules/better-assert/node_modules/callsite/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(){ 3 | var orig = Error.prepareStackTrace; 4 | Error.prepareStackTrace = function(_, stack){ return stack; }; 5 | var err = new Error; 6 | Error.captureStackTrace(err, arguments.callee); 7 | var stack = err.stack; 8 | Error.prepareStackTrace = orig; 9 | return stack; 10 | }; 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/parseuri/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "parseuri", 3 | "version": "0.0.2", 4 | "description": "Method that parses a URI and returns an array of its components", 5 | "scripts": { 6 | "test": "make test" 7 | }, 8 | "devDependencies": { 9 | "mocha": "1.17.1" 10 | }, 11 | "author": "", 12 | "license": "MIT", 13 | "dependencies": { 14 | "better-assert": "~1.0.0" 15 | }, 16 | "_id": "parseuri@0.0.2", 17 | "dist": { 18 | "shasum": "db41878f2d6964718be870b3140973d8093be156", 19 | "tarball": "http://registry.npmjs.org/parseuri/-/parseuri-0.0.2.tgz" 20 | }, 21 | "_from": "parseuri@0.0.2", 22 | "_npmVersion": "1.3.15", 23 | "_npmUser": { 24 | "name": "gal", 25 | "email": "koren@mit.edu" 26 | }, 27 | "maintainers": [ 28 | { 29 | "name": "gal", 30 | "email": "koren@mit.edu" 31 | } 32 | ], 33 | "directories": {}, 34 | "_shasum": "db41878f2d6964718be870b3140973d8093be156", 35 | "_resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.2.tgz" 36 | } 37 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/to-array/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | *.err -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/to-array/LICENCE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 Raynos. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/to-array/README.md: -------------------------------------------------------------------------------- 1 | # to-array 2 | 3 | Turn an array like into an array 4 | 5 | ## Example 6 | 7 | ``` js 8 | var toArray = require("to-array") 9 | , elems = document.links 10 | 11 | var array = toArray(elems) 12 | ``` 13 | 14 | ## Installation 15 | 16 | `npm install to-array` 17 | 18 | ## Contributors 19 | 20 | - Raynos 21 | 22 | ## MIT Licenced 23 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-client/node_modules/to-array/index.js: -------------------------------------------------------------------------------- 1 | module.exports = toArray 2 | 3 | function toArray(list, index) { 4 | var array = [] 5 | 6 | index = index || 0 7 | 8 | for (var i = index || 0; i < list.length; i++) { 9 | array[i - index] = list[i] 10 | } 11 | 12 | return array 13 | } 14 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build 3 | components 4 | 5 | test 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | notifications: 5 | irc: irc.freenode.org##socket.io 6 | git: 7 | depth: 1 8 | env: 9 | global: 10 | - secure: 28HHk1J0H64KNjzmmlxG/Ro0EPuLnhO0rU+kZjjthDHj/FaugIsqjAVQ1Dl6heWV2/MlVzw6nDCyMNiGwiVk0ruZPQ0SYdAKLplrdMtzAihbU3xx+ULFQPLM3SoW0ZFCEpe8dWPGy4WdgW7aLByeel9TJb3vlhAu7p7AvrcO7Fs= 11 | - secure: rKEG0Cfw0vkw8thk63RHYG7h8XWYcBlvZ0w1IWpr2dAfnnLMi1palSTrBrFQc77flk7rN00zGIe76FhKydV9r4WWYAUYKPqo4k+9/FkpzjZlNtL49QRoNwC9jmJ8OeUwGowA13gZPyl/5P13wVaKCB0YrKnzz5LHo3Sp7So6J8U= 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-bdd 2 | browsers: 3 | - name: chrome 4 | version: 29..latest 5 | - name: firefox 6 | version: latest 7 | - name: safari 8 | version: latest 9 | - name: ie 10 | version: 10 11 | platform: Windows 2012 12 | - name: ie 13 | version: 9 14 | version: [6..9, latest] 15 | - name: iphone 16 | version: oldest..latest 17 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/Makefile: -------------------------------------------------------------------------------- 1 | 2 | REPORTER = dot 3 | 4 | test: 5 | @./node_modules/.bin/mocha \ 6 | --reporter $(REPORTER) \ 7 | --bail \ 8 | test/index.js 9 | @./node_modules/.bin/zuul -- test/index.js 10 | 11 | .PHONY: test 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/bench/bench.js: -------------------------------------------------------------------------------- 1 | var bencher = require('./index'); 2 | bencher(function(benchmark) { 3 | function logMean(test) { 4 | console.log(test.name + ' mean run time: ' + test.stats.mean); 5 | } 6 | 7 | for (var i = 0; i < benchmark.length; i++) { 8 | logMean(benchmark[i]); 9 | } 10 | }); 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/bg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marco-ponds/dodgem/88607c741b51183293ba30c12237d750a3986bf4/server/node_modules/socket.io/node_modules/socket.io-parser/bg.gif -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/is-buffer.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = isBuf; 3 | 4 | /** 5 | * Returns true if obj is a buffer or an arraybuffer. 6 | * 7 | * @api private 8 | */ 9 | 10 | function isBuf(obj) { 11 | return (global.Buffer && global.Buffer.isBuffer(obj)) || 12 | (global.ArrayBuffer && obj instanceof ArrayBuffer); 13 | } 14 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/benchmark/test/run-test.sh: -------------------------------------------------------------------------------- 1 | cd "$(dirname "$0")" 2 | for cmd in rhino ringo narwhal node; do 3 | echo "" 4 | echo "Testing in $cmd..." 5 | $cmd test.js 6 | done 7 | echo "" 8 | echo "Testing in a browser..." 9 | open index.html 10 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/component-emitter/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/component-emitter/.travis.yml: -------------------------------------------------------------------------------- 1 | node_js: 2 | - "0.8" 3 | - "0.10" 4 | language: node_js -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/component-emitter/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/component-emitter/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "emitter", 3 | "description": "Event emitter", 4 | "keywords": [ 5 | "emitter", 6 | "events" 7 | ], 8 | "version": "1.1.2", 9 | "license": "MIT", 10 | "main": "index.js", 11 | "homepage": "https://github.com/component/emitter", 12 | "ignore": [ 13 | "**/.*", 14 | "node_modules", 15 | "bower_components", 16 | "test", 17 | "Makefile", 18 | "package.json", 19 | "component.json" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/component-emitter/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "emitter", 3 | "repo": "component/emitter", 4 | "description": "Event emitter", 5 | "keywords": [ 6 | "emitter", 7 | "events" 8 | ], 9 | "version": "1.1.2", 10 | "scripts": [ 11 | "index.js" 12 | ], 13 | "license": "MIT" 14 | } 15 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/debug/index.js: -------------------------------------------------------------------------------- 1 | if ('undefined' == typeof window) { 2 | module.exports = require('./lib/debug'); 3 | } else { 4 | module.exports = require('./debug'); 5 | } 6 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/isarray/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "isarray", 3 | "description" : "Array#isArray for older browsers", 4 | "version" : "0.0.1", 5 | "repository" : "juliangruber/isarray", 6 | "homepage": "https://github.com/juliangruber/isarray", 7 | "main" : "index.js", 8 | "scripts" : [ 9 | "index.js" 10 | ], 11 | "dependencies" : {}, 12 | "keywords": ["browser","isarray","array"], 13 | "author": { 14 | "name": "Julian Gruber", 15 | "email": "mail@juliangruber.com", 16 | "url": "http://juliangruber.com" 17 | }, 18 | "license": "MIT" 19 | } 20 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/json3/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "vendor/spec"] 2 | path = vendor/spec 3 | url = git://github.com/kitcambridge/spec.git 4 | [submodule "vendor/marked"] 5 | path = vendor/marked 6 | url = git://github.com/chjj/marked.git 7 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/json3/.jamignore: -------------------------------------------------------------------------------- 1 | .* 2 | build.js 3 | index.html 4 | component.json 5 | bower.json 6 | index.js 7 | benchmark 8 | page 9 | test 10 | vendor 11 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/json3/.npmignore: -------------------------------------------------------------------------------- 1 | bower.json 2 | component.json 3 | build.js 4 | index.html 5 | index.js 6 | .jshintrc 7 | 8 | benchmark 9 | page 10 | test 11 | vendor 12 | -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/json3/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2013 Kit Cambridge. 2 | http://kitcambridge.be/ 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of 5 | this software and associated documentation files (the "Software"), to deal in 6 | the Software without restriction, including without limitation the rights to 7 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 8 | of the Software, and to permit persons to whom the Software is furnished to do 9 | so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 | SOFTWARE. -------------------------------------------------------------------------------- /server/node_modules/socket.io/node_modules/socket.io-parser/node_modules/json3/coverage/lcov-report/prettify.css: -------------------------------------------------------------------------------- 1 | .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} 2 | -------------------------------------------------------------------------------- /server/node_modules/underscore/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative 2 | Reporters & Editors 3 | 4 | Permission is hereby granted, free of charge, to any person 5 | obtaining a copy of this software and associated documentation 6 | files (the "Software"), to deal in the Software without 7 | restriction, including without limitation the rights to use, 8 | copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the 10 | Software is furnished to do so, subject to the following 11 | conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 | OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /server/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dodgem", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "", 6 | "author": "Marco Stagni , mrc.stagni@gmail.com", 7 | "license": "MIT", 8 | "dependencies": { 9 | "socket.io": "*", 10 | "underscore": "*" 11 | } 12 | } --------------------------------------------------------------------------------