From 53a3412fad798fa4f7c90d549467cef7f4324c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Lo=CC=88ffel?= Date: Tue, 16 Mar 2021 09:26:04 +0100 Subject: [PATCH] Revert "Update recws.go" This reverts commit dca1dfa2dfbdfc62d861c203fbc71d7625f6c56f. --- recws.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recws.go b/recws.go index e9b4463..94aec5c 100644 --- a/recws.go +++ b/recws.go @@ -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)