public void RequestLobbyChat(ServerPacketData packetData) { var sessionID = packetData.SessionID; LobbyServer.MainLogger.Debug("RequestChat"); try { var lobbyObject = CheckLobbyAndLobbyUser(sessionID); if (lobbyObject.Item1 == false) { return; } var reqData = new LobbyChatReqPacket(); reqData.Decode(packetData.BodyData); ResponseLobbyChatToClient(sessionID, ERROR_CODE.NONE); var notifyPacket = new LobbyChatNtfPacket() { Msg = reqData.Msg, }; lobbyObject.Item2.Broadcast((UInt16)CL_PACKET_ID.NTF_LOBBY_CHAT, notifyPacket.ToBytes()); LobbyServer.MainLogger.Debug("RequestChat - Success"); } catch (Exception ex) { LobbyServer.MainLogger.Error(ex.ToString()); } }
static void ProcessNotifyLobbyChat(Byte[] data) { try { var response = new LobbyChatNtfPacket(); response.Decode(data); Debug.Log("채팅알림 패킷 도착"); LobbyNetworkServer.Instance.ChatMsgQueue.Enqueue(response.Msg); } catch (Exception e) { Debug.LogError(e.ToString()); } }