Imports github.com/pkg/errors github.com/gorilla/websocket Standard library imports crypto/tls encoding/json errors fmt io io/ioutil net/http os time