2
0

Revert "Update recws.go"

This reverts commit dca1dfa2df.
This commit is contained in:
Lucas Löffel
2021-03-16 09:26:04 +01:00
parent dca1dfa2df
commit 53a3412fad
+2 -3
View File
@@ -54,7 +54,8 @@ type RecConn struct {
httpResp *http.Response
dialErr error
dialer *websocket.Dialer
close chan (bool)
// if set to true, close stops dial reconnection
close chan (bool)
*websocket.Conn
}
@@ -291,9 +292,7 @@ func (rc *RecConn) Dial(urlStr string, reqHeader http.Header) {
log.Fatalf("Dial: %v", err)
}
// Close channel
rc.close = make(chan bool, 1)
// Config
rc.setURL(urlStr)
rc.setReqHeader(reqHeader)