27#include "CoreMinimal.h"
52 virtual FName
Name()
const override;
59 virtual int Version()
const override;
77 virtual TArray<TSharedPtr<FHubMessage>>
ParseMessages(
const FString& InMessage)
const override;
80 TSharedPtr<FHubMessage> ParseMessage(
const FString& InMessage)
const;
Implementation of the SignalR JSON hub protocol.
Definition JsonHubProtocol.h:35
static constexpr TCHAR RecordSeparator
Character used to separate records in the SignalR protocol stream.
Definition JsonHubProtocol.h:40
virtual ~FJsonHubProtocol() override=default
Virtual destructor for the JSON hub protocol.
Interface for SignalR hub protocol implementations.
Definition IHubProtocol.h:140
virtual FString SerializeMessage(const FHubMessage *) const =0
Serializes a hub message to a string.
virtual TArray< TSharedPtr< FHubMessage > > ParseMessages(const FString &) const =0
Parses a string containing one or more serialized hub messages.
virtual FName Name() const =0
Gets the name of the protocol.
virtual int Version() const =0
Gets the version of the protocol.
Base message structure for SignalR hub communication.
Definition IHubProtocol.h:36