IWebSocket::Close

Close the current connection.

Windows
MacOS
Linux

References

Module

WebSockets

Header

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

Include

#include "IWebSocket.h"

Syntax

void Close
(
    int32 Code,
    const FString & Reason
)

Remarks

Close the current connection.

Parameters

Parameter

Description

Code

Numeric status code explaining why the connection is being closed. Default is 1000. See WebSockets spec for valid codes.

Reason

Human readable string explaining why the connection is closing.

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