UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
FHandshakeProtocol Class Reference

Implements the SignalR handshake protocol used during connection initialization. More...

#include <HandshakeProtocol.h>

Static Public Member Functions

static FString CreateHandshakeMessage (TSharedPtr< IHubProtocol > InProtocol)
 Creates a handshake message for the specified hub protocol.
 
static TTuple< TSharedPtr< FJsonObject >, FString > ParseHandshakeResponse (const FString &Response)
 Parses a handshake response from the server.
 

Detailed Description

Implements the SignalR handshake protocol used during connection initialization.

Handles creation and parsing of handshake messages that negotiate protocol versions and connection settings between client and server.

Member Function Documentation

◆ CreateHandshakeMessage()

FString FHandshakeProtocol::CreateHandshakeMessage ( TSharedPtr< IHubProtocol > InProtocol)
static

Creates a handshake message for the specified hub protocol.

Parameters
InProtocolThe protocol to create a handshake message for
Returns
A string containing the serialized handshake message

◆ ParseHandshakeResponse()

TTuple< TSharedPtr< FJsonObject >, FString > FHandshakeProtocol::ParseHandshakeResponse ( const FString & Response)
static

Parses a handshake response from the server.

Parameters
ResponseThe raw response string from the server
Returns
A tuple containing the parsed handshake message as a JSON object and any remaining response data

The documentation for this class was generated from the following files: