Support websocket over ssl, pass uuid in url

This commit is contained in:
Ken-Håvard Lieng 2015-12-29 22:23:07 +01:00
parent 12d6cdd4c8
commit de1a2dd343
5 changed files with 49 additions and 41 deletions

View file

@ -59,7 +59,10 @@ func upgradeWS(w http.ResponseWriter, r *http.Request) {
return
}
newWSHandler(conn).run()
uuid := r.URL.Query().Get("uuid")
if uuid != "" {
newWSHandler(conn, uuid).run()
}
}
func reconnect() {