2
0

add KeepAliveTimeout

This commit is contained in:
Lucas Löffel
2019-06-07 17:37:55 +02:00
parent 1084f604db
commit ccaeedddf5
+3 -1
View File
@@ -9,7 +9,9 @@ import (
func main() {
ctx, cancel := context.WithCancel(context.Background())
ws := recws.RecConn{}
ws := recws.RecConn{
KeepAliveTimeout: 10 * time.Second,
}
ws.Dial("wss://echo.websocket.org", nil)
go func() {