You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
hexmap/server/websocket/reader.go

14 lines
286 B

package websocket
import (
"github.com/gorilla/websocket"
"time"
)
// Todo: Listen for pongs and extend the read deadline every time you get one
type reader struct {
conn *websocket.Conn
channel chan ClientMessage
readNotifications chan<- time.Duration
}