🎨 reconnect log

This commit is contained in:
Akiba
2022-06-16 19:59:34 +08:00
parent f69fa04863
commit 0063dd1135

View File

@@ -80,6 +80,7 @@ func (c *Client) listen() {
default:
msgType, data, err := c.conn.ReadMessage()
if err != nil {
log.Info("reconnect")
time.Sleep(time.Duration(3) * time.Millisecond)
_ = c.Connect()
continue