Internet Protocol
Unreal Engine Plugin

Websocket Server Openssl

How to use Websocket server class with openssl

References

#include "WS/WSServer.h"

How to use

Blueprint: search by GetInternetProtocolSubsystem and call CreateWebsocketServerSsl function

C++: Use the code bellow

#include "WS/WSServer.h"
 
UWSServerSsl* WSServerSsl = NewObject<UWSServerSsl>();

Functions

This class has the same functions from WebsocketServer, except for the ones shown below=

Get Ssl Context

  • Get ssl context properties.
  • Must be called after change any config from Ssl Context.
Websocket server openssl

Get Ssl Sockets

  • Get ssl socket properties.
Websocket server openssl

Load Private Key Data

  • Load the private key from a string.
  • If any error occurs, it will trigger the OnError event.
WS server openssl

Load Private Key File

  • Load the private key from file.
  • If any error occurs, it will trigger the OnError event.
  • Relative path.
WS server openssl

Load Certificate Data

  • Load the certificate from a string.
  • If any error occurs, it will trigger the OnError event.
WS server openssl

Load Certificate File

  • Load the certificate from file.
  • If any error occurs, it will trigger the OnError event.
  • Relative path.
WS server openssl

Load Certificate Chain Data

  • Load the certificate chain from a string.
  • If any error occurs, it will trigger the OnError event.
WS server openssl

Load Certificate Chain File

  • Load the certificate chain from file.
  • If any error occurs, it will trigger the OnError event.
  • Relative path.
WS server openssl

Load Verify File

  • Load the certificate from file and verify if it is valid.
  • If any error occurs, it will trigger the OnError event.
  • Relative path.
WS server openssl

On this page