feat(live): just wanted to checkout how far I got on the websocket data source
This commit is contained in:
@@ -48,6 +48,7 @@ func (c *connection) readPump() {
|
||||
h.unregister <- c
|
||||
c.ws.Close()
|
||||
}()
|
||||
|
||||
c.ws.SetReadLimit(maxMessageSize)
|
||||
c.ws.SetReadDeadline(time.Now().Add(pongWait))
|
||||
c.ws.SetPongHandler(func(string) error { c.ws.SetReadDeadline(time.Now().Add(pongWait)); return nil })
|
||||
|
||||
Reference in New Issue
Block a user