Navigation
API > API/Runtime > API/Runtime/WebSockets > API/Runtime/WebSockets/IWebSocket
References
| Module | WebSockets |
| Header | /Engine/Source/Runtime/Online/WebSockets/Public/IWebSocket.h |
| Include | #include "IWebSocket.h" |
void Close
&40;
int32 Code,
const FString & Reason
&41;
Remarks
Close the current connection.
Parameters
| Name | 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. |