Using ws instead of WebSocket browser API
This commit is contained in:
parent
2aa8ec685a
commit
f0f3eb85ac
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
bundle.js
|
bundle.js
|
||||||
|
node_modules
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -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' $@
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in a new issue