Exemplo n.º 1
0
 private static void RunTest(JsonWebSocket websocket)
 {
     websocket.Send("ECHO", Guid.NewGuid().ToString() + Guid.NewGuid().ToString() + Guid.NewGuid().ToString() + Guid.NewGuid().ToString());
     Interlocked.Increment(ref m_Sent);
 }
Exemplo n.º 2
0
        private static void RunTest(JsonWebSocket websocket)
        {
            websocket.Send("ECHOX", new ClientInfo
            {
                ID = m_Random.Next(1, 1000),
                Height = m_Random.Next(1, 1000),
                LocationX = m_Random.Next(1, 1000),
                LocationY = m_Random.Next(1, 1000)
            });

            Interlocked.Increment(ref m_Sent);
        }