down机问题

This commit is contained in:
lifeiyi
2019-03-20 17:28:30 +08:00
parent 9bf79f7175
commit b73f21fa26

View File

@@ -197,6 +197,7 @@ func (slf *BaseMessageReciver) OnHandleHttp(w http.ResponseWriter, r *http.Reque
conn, err := websocket.Upgrade(w, r, w.Header(), 1024, 1024)
if err != nil {
http.Error(w, "Could not open websocket connection", http.StatusBadRequest)
return
}
pclient := slf.WsServer.CreateClient(conn)