void OnClosed(ClientSession session, CloseReason reason) { MainLogger.Info(string.Format("세션 번호 {0} 접속해제: {1}", session.SessionID, reason.ToString())); var packet = ServerPacketData.MakeNTFInConnectOrDisConnectClientPacket(false, session.SessionID); Distribute(packet); }
void OnConnected(ClientSession session) { MainLogger.Info(string.Format("세션 번호 {0} 접속", session.SessionID)); var packet = ServerPacketData.MakeNTFInConnectOrDisConnectClientPacket(true, session.SessionID); Distribute(packet); }