IWebSocketsManager::CreateWebSocket

Instantiates a new web socket for the current platform

Windows
MacOS
Linux

References

Module

WebSockets

Header

/Engine/Source/Runtime/Online/WebSockets/Public/IWebSocketsManager.h

Include

#include "IWebSocketsManager.h"

Syntax

TSharedRef< IWebSocket > CreateWebSocket
(
    const FString & Url,
    const TArray< FString > & Protocols,
    const TMap< FString, FString > & UpgradeHeaders
)

Remarks

Instantiates a new web socket for the current platform

Returns

new IWebSocket instance

Parameters

Parameter

Description

Url

The URL to which to connect; this should be the URL to which the WebSocket server will respond.

Protocols

a list of protocols the client will handle.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss