Support websocket over ssl, pass uuid in url
This commit is contained in:
parent
12d6cdd4c8
commit
de1a2dd343
5 changed files with 49 additions and 41 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue