diff --git a/index.html b/index.html index 5440435a..46ade8a8 100644 --- a/index.html +++ b/index.html @@ -26,9 +26,36 @@ textarea { diff --git a/main.go b/main.go index 428c3a4d..f514176a 100644 --- a/main.go +++ b/main.go @@ -75,12 +75,15 @@ func ws(w http.ResponseWriter, r *http.Request) { } defer c.Close() + log.Println("new connection") webRTC := webrtc.NewWebRTC() localSession, err := webRTC.StartClient(width, height) if err != nil { log.Fatalln(err) } + log.Println("new connection2") + // streaming game // imageChannel := make(chan *image.RGBA, 100) // go screenshotLoop(imageChannel, webRTC)