///
/// FastWebSocketAutolinking.mm
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2024 Marc Rousavy @ Margelo
///

#import <Foundation/Foundation.h>
#import <NitroModules/HybridObjectRegistry.hpp>
#import "FastWebSocket-Swift-Cxx-Umbrella.hpp"
#import <type_traits>

#include "HybridWebSocketManagerSpecSwift.hpp"

@interface FastWebSocketAutolinking : NSObject
@end

@implementation FastWebSocketAutolinking

+ (void) load {
  using namespace margelo::nitro;
  using namespace margelo::nitro::websocket;

  HybridObjectRegistry::registerHybridObjectConstructor(
    "WebSocketManager",
    []() -> std::shared_ptr<HybridObject> {
      std::shared_ptr<margelo::nitro::websocket::HybridWebSocketManagerSpec> hybridObject = FastWebSocket::FastWebSocketAutolinking::createWebSocketManager();
      return hybridObject;
    }
  );
}

@end
