Compare commits

...

1 Commits
main ... main

Author SHA1 Message Date
Dana Markova
1f97891439 add webSocket 2025-04-22 13:56:43 +03:00
2 changed files with 1051 additions and 998 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,6 +8,11 @@ using System.Runtime.InteropServices;
using System.CodeDom; using System.CodeDom;
using System.Linq; using System.Linq;
using System.Net.WebSockets;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DroneSimulator namespace DroneSimulator
{ {
public partial class Form_Main : Form public partial class Form_Main : Form
@ -18,7 +23,9 @@ namespace DroneSimulator
NetServerVisual netServerVisual = new NetServerVisual(); NetServerVisual netServerVisual = new NetServerVisual();
List<Drone> AllDrones = new List<Drone>(); List<Drone> AllDrones = new List<Drone>();
private ClientWebSocket _webSocket;
private CancellationTokenSource _cts;
private bool _isRunning;
public Form_Main() public Form_Main()
{ {
InitializeComponent(); InitializeComponent();
@ -204,5 +211,7 @@ namespace DroneSimulator
} }
} }
} }
} }
} }