Imports github.com/CharlesHolbrow/pubsub github.com/garyburd/redigo/redis github.com/gorilla/websocket gopkg.in/mgo.v2 gopkg.in/mgo.v2/bson Standard library imports encoding/json errors fmt log math/rand net/http os strconv strings sync time