public static void SendPingAction()
        {
            PingAction action = new PingAction();

            var bytes = Encoding.ASCII.GetBytes(JsonConvert.SerializeObject(action));

            stream.Write(bytes, 0, bytes.Length);
        }
Exemple #2
0
 //---------------------------------------------------------------------
 private void _onPingAction()
 {
     PingAction?.Invoke(this, new InternalPingServerActionEventArgs(this));
 }