mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-01-11 17:30:18 +01:00
Use "ignore incoming messages" code from the gorilla websocket documentation.
This commit is contained in:
parent
f943919ee6
commit
7249a60043
@ -105,7 +105,7 @@ func (c *connection) reader() {
|
|||||||
defer c.ws.Close()
|
defer c.ws.Close()
|
||||||
for {
|
for {
|
||||||
// Just read the message and ignore it.
|
// Just read the message and ignore it.
|
||||||
if _, _, err := c.ws.ReadMessage(); err != nil {
|
if _, _, err := c.ws.NextReader(); err != nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user