Imports github.com/gorilla/websocket github.com/pkg/errors Standard library imports bytes context crypto/tls encoding/json errors fmt io/ioutil math net net/http strings sync time