public ProxyServer(string host, int port, IBLERequest request)
 {
     httpListener = new HttpListener();
     httpListener.Prefixes.Add($"http://{host}:{port}/");
     clients           = new List <WebSocket>();
     clientDisposables = new List <IDisposable>();
     requestAgent      = new RequestAgent(request, this);
 }
 public RequestAgent(IBLERequest request, IBLENotify notify)
 {
     this.bleProxy = request;
     this.notify   = notify;
 }