Using ws instead of WebSocket browser API

This commit is contained in:
Geoffrey Frogeye 2015-06-05 17:41:29 +02:00
parent 2aa8ec685a
commit f0f3eb85ac
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
bundle.js
node_modules

View File

@ -1,3 +1,2 @@
bundle.js: loader.js client/agario-client.js
browserify $< -o /tmp/agario-webclient-makefile -i buffer-dataview -i ws
sed -i '/var WebSocket/d' $@
browserify $< -o $@ -i buffer-dataview

View File

@ -8,6 +8,7 @@ A small browser-based graphical client for agar.io, written using [pixijs](http:
##Usage
* Clone the repo with the `--recursive` option. If it was cloned without this option, run `git submodule update --init --recursive`
* Install [browserify](http://browserify.org/) globally
* Install [browserify](http://browserify.org/) globally `npm install -g browserify`
* Install [ws](http://einaros.github.io/ws/) locally `npm install w`
* Run `make`
* Open `app.html` from the browser