debug msg
parent
e34643a451
commit
4869887ec0
|
@ -21,6 +21,7 @@ func HandleWebMessage(isVoice bool, conn *websocket.Conn, uuid string, status in
|
|||
var raw []byte
|
||||
var client *structs.WebClient
|
||||
|
||||
// TODO: handle other dests
|
||||
if status == kraProtocol.StatusGet {
|
||||
client = getWebClientByConn(conn)
|
||||
|
||||
|
@ -74,6 +75,8 @@ func HandleWebMessage(isVoice bool, conn *websocket.Conn, uuid string, status in
|
|||
|
||||
raw = kraProtocol.SendMessageToJava(status, cmdID, dest, uuid, cmdNumber, args)
|
||||
|
||||
logger.Minecraft.Debugln("forwarding", client.Uuid, connForDest)
|
||||
|
||||
err = client.SendBinaryMessage(connForDest, raw)
|
||||
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue