reply handling
parent
ab7d97a57a
commit
60ff336abd
|
@ -27,6 +27,19 @@ func HandleWebMessage(isVoice bool, conn *websocket.Conn, uuid string, status in
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if status == kraProtocol.StatusReply {
|
||||||
|
// TODO: TODO: handling reply
|
||||||
|
|
||||||
|
if isVoice {
|
||||||
|
if isCmdIDInList(webClient.VoiceCmdIDs, cmdID) {
|
||||||
|
webClient.RemoveVoiceCmdID(cmdID)
|
||||||
|
} else {
|
||||||
|
webClient.RemoveMobileCmdID(cmdID)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// ack
|
// ack
|
||||||
if status == kraProtocol.StatusGet {
|
if status == kraProtocol.StatusGet {
|
||||||
var cmdIDInList bool
|
var cmdIDInList bool
|
||||||
|
@ -62,8 +75,8 @@ func HandleWebMessage(isVoice bool, conn *websocket.Conn, uuid string, status in
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// no ack
|
|
||||||
|
|
||||||
|
// no ack
|
||||||
if dest == kraProtocol.DestProxy || dest == kraProtocol.DestPlayersCurrentServer { // forwarding message to java / minecraft
|
if dest == kraProtocol.DestProxy || dest == kraProtocol.DestPlayersCurrentServer { // forwarding message to java / minecraft
|
||||||
err = SendMessageToMinecraftServer(status, dest, uuid, cmdNumber, args)
|
err = SendMessageToMinecraftServer(status, dest, uuid, cmdNumber, args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue