diff --git a/server/web/ws.go b/server/web/ws.go index 17c94c9..d58fb5b 100644 --- a/server/web/ws.go +++ b/server/web/ws.go @@ -69,6 +69,13 @@ func (t *WS) ServeHTTP(resp http.ResponseWriter, req *http.Request) { for { data := <-ch + + if data == nil { + //how the hell got a nil reference in here..?! + //related issue: #18 + continue + } + err := conn.WriteMessage(websocket.TextMessage, data) if err != nil { break