gusher plus version ,support cluster
- redis
Docker example use doc
docker pull syhlion/gusher.cluster
docker run --name docker-redis -d redis
docker run --env-file env.example --link docker-redis --name gusher-master -p 7999:8888 -d syhlion/gusher.cluster master //master mode
docker run --env-file env.example --link docker-redis --link gusher-master --name gusher-slave -p 8000:8888 -d syhlion/gusher.cluster slave //slave mode
//note env & link hostname
docker-compose use doc
Build from source:
Package Management use govendor
$ go get github.com/syhlion/gusher.cluster && cd $GOPATH/github.com/syhlion/gusher.cluster
$ make build/linux
Download:
And Set ENV like example
Than Use
master mode:
$ ./gusher.cluster master
or ./gusher.cluster master --env-file env.example
slave mode:
$ ./gusher.cluster slave
or ./gusher.cluster slave --env-file env.example
client js:
backend php:
- @leo , @benjamin support api lib
- pusher inspiration
- gorilla/websocket