Versions in this module Expand all Collapse all v1 v1.0.0 Jul 30, 2019 Changes in this version + var ErrNotConnected = errors.New("websocket: not connected") + type RecConn struct + HandshakeTimeout time.Duration + KeepAliveTimeout time.Duration + NonVerbose bool + Proxy func(*http.Request) (*url.URL, error) + RecIntvlFactor float64 + RecIntvlMax time.Duration + RecIntvlMin time.Duration + SubscribeHandler func() error + func (rc *RecConn) Close() + func (rc *RecConn) Dial(urlStr string, reqHeader http.Header) + func (rc *RecConn) GetDialError() error + func (rc *RecConn) GetHTTPResponse() *http.Response + func (rc *RecConn) GetURL() string + func (rc *RecConn) IsConnected() bool + func (rc *RecConn) ReadJSON(v interface{}) error + func (rc *RecConn) ReadMessage() (messageType int, message []byte, err error) + func (rc *RecConn) WriteJSON(v interface{}) error + func (rc *RecConn) WriteMessage(messageType int, data []byte) error