Skip to Content
Internet Protocol
Unreal Engine Plugin

Websocket Client Openssl

WebSocket client over TLS (OpenSSL) for Unreal Engine: Blueprint nodes, events and C++ usage with the Internet Protocol plugin.

References

#include "websocket/wsclient.h"

How to use

Blueprint: search by GetInternetProtocolSubsystem and call CreateWebsocketClientSsl function

C++: Use the code bellow

#include "websocket/wsclient.h"

FSecurityContextOpts SecOpts = { ... };
UWSClientSsl* client = NewObject<UWSClientSsl>();
// Optional: without Construct, the secure defaults are used
client->Construct(SecOpts);

TLS options

  • SecOpts configures 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, WSClientSsl is the WSClient class with Use Tls turned on. You can also use a plain WSClient, set Use Tls or call Set Tls Options before connecting.

Functions

This class has the same variables, functions and events as WSClient.

Edit on GitHub

On this page