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.
15 lines
286 B
15 lines
286 B
3 years ago
|
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
|
||
|
}
|