A Golang implementation of socket.io-redis-emitter
This project uses redis. Make sure your environment has redis.
To install in your golang project.
$ go get github.com/cuizuoli/socket.io-redis-emitter-go
Example:
e := emitter.NewEmitter(emitter.EmitterOptions{
Redis: emitter.RedisOptions{
Address: "localhost:6379",
Password: "123456",
ReadTimeout: 30,
PoolSize: 8,
},
})
e.Emit("message", "Hi!")