Navigation
API > API/Runtime > API/Runtime/WebSockets
References
| Module | WebSockets |
| Header | /Engine/Source/Runtime/Online/WebSockets/Public/IWebSocket.h |
| Include | #include "IWebSocket.h" |
Syntax
class IWebSocket
Destructors
| Type | Name | Description | |
|---|---|---|---|
~IWebSocket () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Close the current connection. | ||
| void | Connect () |
Initiate a client connection to the server. | |
| bool | IsConnected () |
Inquire if this web socket instance is connected to a server. | |
| FWebSocketBinaryMessageEvent & | |||
| FWebSocketClosedEvent & | OnClosed () |
||
| FWebSocketConnectedEvent & | OnConnected () |
||
| FWebSocketConnectionErrorEvent & | |||
| FWebSocketMessageEvent & | OnMessage () |
||
| FWebSocketMessageSentEvent & | |||
| FWebSocketRawMessageEvent & | OnRawMessage () |
||
| void | Transmit data over the connection. | ||
| void | Send
(
const void* Data, |
Transmit data over the connection. | |
| void | SetTextMessageMemoryLimit
(
uint64 TextMessageMemoryLimit |
Optionally change memory limit for receiving UTF-8 text on this socket. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FWebSocketBinaryMessageEvent | Delegate called when web socket binary data has been received. | ||
| FWebSocketClosedEvent | Delegate called when a web socket connection has been closed. | ||
| FWebSocketConnectedEvent | Delegate called when a web socket connection has been established successfully. | ||
| FWebSocketConnectionErrorEvent | Delegate called when a web socket connection could not be established. | ||
| FWebSocketMessageEvent | Delegate called when a web socket text message has been received. | ||
| FWebSocketMessageSentEvent | Delegate called when a web socket text message has been sent. Assume UTF-8 encoding. | ||
| FWebSocketRawMessageEvent | Delegate called when any web socket data has been received. |