Navigation
API > API/Plugins > API/Plugins/WebSocketNetworking
| Name | IWebSocketServer |
| Type | class |
| Header File | /Engine/Plugins/Experimental/WebSocketNetworking/Source/WebSocketNetworking/Public/IWebSocketServer.h |
| Include Path | #include "IWebSocketServer.h" |
Syntax
class IWebSocketServer
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IWebSocketServer() |
IWebSocketServer.h |
Enums
Public
| Name | Remarks |
|---|---|
| ENetworkProtocol | Bitmask of network protocols the server should listen on. |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void EnableHTTPServer
(
TArray< FWebSocketHttpMount > DirectoriesToServe, |
Extends the websocket server to additionally serve static content from on-disk directories using HTTP or HTTPS. | IWebSocketServer.h | |
FString Info() |
Describe this libwebsocket server | IWebSocketServer.h | |
bool Init
(
uint32 Port, |
Initialize the server and start listening for messages. | IWebSocketServer.h | |
void SetFilterConnectionCallback
(
FWebSocketFilterConnectionCallback InFilterConnectionCallback |
Set a filter callback, used to reject connections based on the origin header. | IWebSocketServer.h | |
void Tick() |
Tick the server. | IWebSocketServer.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetNetworkProtocol
(
ENetworkProtocol Protocol |
Set which network protocols the server should listen on. | IWebSocketServer.h |