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 }