internal override void OnMessage(string method, JsonElement?serverParams)
 {
     switch (method)
     {
     case "previewUpdated":
         PreviewUpdated?.Invoke(this, new() { Preview = serverParams.Value.GetProperty("preview").ToString() });
         break;
     }
 }
 public void OnPreviewFrame(byte[] data, Camera camera)
 {
     PreviewUpdated.Invoke(this, new PreviewUpdatedEventArgs(data, camera));
 }