add webSocket
This commit is contained in:
parent
bac52d315b
commit
1f97891439
932
DroneSimulator/FormMain.Designer.cs
generated
932
DroneSimulator/FormMain.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -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
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user