Imports github.com/gorilla/websocket github.com/pkg/errors github.com/sirupsen/logrus Standard library imports bufio context crypto/tls encoding/binary errors fmt io io/ioutil math/rand net net/http strings sync sync/atomic time