public static void SendPingAction() { PingAction action = new PingAction(); var bytes = Encoding.ASCII.GetBytes(JsonConvert.SerializeObject(action)); stream.Write(bytes, 0, bytes.Length); }
//--------------------------------------------------------------------- private void _onPingAction() { PingAction?.Invoke(this, new InternalPingServerActionEventArgs(this)); }