Open
Description
Using the basic example, the code below will flood the console and cause 100% CPU usage on a single core;
if !ws.IsConnected() {
log.Printf("Websocket disconnected %s", ws.GetURL())
continue
}
It's not the most elegant solution, but an easy fix is to do something like this:
if !rm.conn.IsConnected() {
<-time.After(rm.conn.RecIntvlMin)
continue
}
Is there a better way to do this? It doesn't look like there's a connected
channel to block on.
Metadata
Assignees
Labels
No labels