diff --git a/serverCommunication/web.go b/serverCommunication/web.go index 3f69f32..434f08e 100644 --- a/serverCommunication/web.go +++ b/serverCommunication/web.go @@ -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 {