Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

19 lines
534 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "EpicRtcWebsocketFactory.h"
namespace UE::PixelStreaming2
{
EpicRtcErrorCode FEpicRtcWebsocketFactory::CreateWebsocket(EpicRtcWebsocketInterface** OutWebsocket)
{
EpicRtcWebsocketInterface* Websocket = new FEpicRtcWebsocket(bSendKeepAlive, nullptr);
// Because the ptr was created with new, we need to call AddRef ourself (ms spec compliant)
Websocket->AddRef();
*OutWebsocket = Websocket;
return EpicRtcErrorCode::Ok;
}
} // namespace UE::PixelStreaming2