Imports github.com/gorilla/websocket github.com/pkg/errors Standard library imports bytes crypto/hmac crypto/sha256 crypto/tls encoding/base64 encoding/json errors fmt io/ioutil log math/rand net/http net/url os strconv strings sync time