Refactor websocket handler
This commit is contained in:
parent
047027ddec
commit
114bf8201e
8 changed files with 257 additions and 226 deletions
|
@ -59,7 +59,7 @@ func upgradeWS(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
handleWS(conn)
|
||||
newWSHandler(conn).run()
|
||||
}
|
||||
|
||||
func reconnect() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue