This commit is contained in:
aozhiwei 2023-09-24 15:57:18 +08:00
parent bbd1c7a7f2
commit a588de77a3

View File

@ -6,6 +6,7 @@ import (
"encoding/json" "encoding/json"
"f5" "f5"
"fmt" "fmt"
"net"
"mt" "mt"
"q5" "q5"
"main/constant" "main/constant"
@ -45,6 +46,16 @@ func (this *playerMgr) Init() {
}) })
} }
}) })
f5.GetApp().RegisterIMMsgHandle(
constant.IM_WSP_CLOSE,
func (args q5.Args) {
conn := args[0].(net.Conn)
for socket, _ := range(this.socketHash) {
if conn == socket.Conn {
}
}
})
} }
func (this *playerMgr) UnInit() { func (this *playerMgr) UnInit() {