Unreal Engine Plugin
Websocket Server Openssl
WebSocket server over TLS (OpenSSL) for Unreal Engine: Blueprint nodes, events and C++ usage with the Internet Protocol plugin.
References
#include "websocket/wsserver.h"
How to use
Blueprint: search by GetInternetProtocolSubsystem and call CreateWebsocketServerSsl function
C++: Use the code bellow
#include "websocket/wsserver.h"
FSecurityContextOpts SecOpts = { ... };
UWSServerSsl* WSServerSsl = NewObject<UWSServerSsl>();
// Required: a TLS server needs a certificate and a private key
WSServerSsl->Construct(SecOpts);TLS options
SecOptsconfigures certificates, keys and verification. See Security Context Options for every field and its default.- Since 3.0.2 the connection is secure by default: TLS 1.2+, peer verification with the system root certificates and, for clients, host name verification + SNI.
4.0: one class for TLS and plain connections
Since 4.0, WSServerSsl is the WSServer class with Use Tls turned on. You can also use a plain WSServer and call Set Tls Options with a certificate and a private key before Open. The connections it accepts are the shared WSRemote class.
Functions
This class has the same variables, functions and events as WSServer.