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
|
||||
node_modules
|
||||
|
|
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue