Imports github.com/bitly/go-simplejson github.com/dongshimou/logrus-prefixed-formatter github.com/gorilla/websocket github.com/sirupsen/logrus Standard library imports bytes compress/flate compress/zlib context encoding/binary encoding/json fmt io io/ioutil math/rand net net/http net/url strings sync time