debug msg

master
Alex 2021-12-28 20:52:48 +01:00
parent e34643a451
commit 4869887ec0
1 changed files with 3 additions and 0 deletions

View File

@ -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 {