Esempio n. 1
0
        public void OnConnect(Session session)
        {
            LogMsg("Client Connected, ID: " + session.GetId());

            if (m_UserName.Length > 0 && m_UserToken.Length > 0)
            {
                EnterLobbyRequest request = new EnterLobbyRequest();
                request.UserName  = m_UserName;
                request.UserToken = m_UserToken;

                m_Client.SendString("lobby/enter/" + WebMessage.ToJsonString <EnterLobbyRequest>(request));
            }
        }
Esempio n. 2
0
        public void OnConnect(Session session)
        {
            LogMsg("Client Connected, ID: " + session.GetId());

            if (m_UserName.Length > 0 && m_UserToken.Length > 0)
            {
                EnterLobbyRequest request = new EnterLobbyRequest();
                request.UserName = m_UserName;
                request.UserToken = m_UserToken;

                m_Client.SendString("lobby/enter/" + WebMessage.ToJsonString<EnterLobbyRequest>(request));
            }
        }