IWebSocketServer::Init

Initialize the server and start listening for messages.

Windows
MacOS
Linux

References

Module

WebSocketNetworking

Header

/Engine/Plugins/Experimental/WebSocketNetworking/Source/WebSocketNetworking/Public/IWebSocketServer.h

Include

#include "IWebSocketServer.h"

Syntax

bool Init
(
    uint32 Port,
    FWebSocketClientConnectedCallBack ClientConnectedCallback
)

Remarks

Initialize the server and start listening for messages.

Returns

whether the initialization was successful.

Parameters

Parameter

Description

Port

the port to handle websockets messages on.

ClientConnectedCallback

the handler called when a client has connected.

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