// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include <CreateModules.h>
#include <Networking/WinRTWebSocketResource.h>
#include <QuirkSettings.h>
#include <React.h>
#include <ReactPropertyBag.h>

// Windows API
#include <winrt/Windows.Security.Cryptography.Certificates.h>

using winrt::Microsoft::ReactNative::ReactPropertyBag;
using winrt::Microsoft::ReactNative::ReactPropertyId;
using winrt::Microsoft::ReactNative::implementation::QuirkSettings;

namespace Microsoft::React::Networking {

std::shared_ptr<IWebSocketResource> IWebSocketResource::Make() {
  std::vector<winrt::Windows::Security::Cryptography::Certificates::ChainValidationResult> certExceptions;
  return std::make_shared<WinRTWebSocketResource>(std::move(certExceptions));
}

} // namespace Microsoft::React::Networking
