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 bundle.js
node_modules

View file

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

View file

@ -8,6 +8,7 @@ A small browser-based graphical client for agar.io, written using [pixijs](http:
##Usage ##Usage
* Clone the repo with the `--recursive` option. If it was cloned without this option, run `git submodule update --init --recursive` * 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` * Run `make`
* Open `app.html` from the browser * Open `app.html` from the browser