Skip to content

Commit

Permalink
corrected required include
Browse files Browse the repository at this point in the history
  • Loading branch information
getnamo committed Aug 1, 2019
1 parent 4a11ed9 commit 0bc6e1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions Source/SocketIOClient/Private/SocketIOClientComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,6 @@ void USocketIOClientComponent::EmitWithCallBack(const FString& EventName, USIOJs
}
}

#if WITH_EDITOR

void USocketIOClientComponent::EmitWithGraphCallBack(const FString& EventName, struct FLatentActionInfo LatentInfo, USIOJsonValue*& Result, USIOJsonValue* Message /*= nullptr*/, const FString& Namespace /*= FString(TEXT("/"))*/)
{
//Set the message is not null
Expand Down Expand Up @@ -522,8 +520,6 @@ void USocketIOClientComponent::EmitWithGraphCallBack(const FString& EventName, s
}
}

#endif //WITH_EDITOR

void USocketIOClientComponent::EmitNative(const FString& EventName, const TSharedPtr<FJsonValue>& Message /*= nullptr*/, TFunction< void(const TArray<TSharedPtr<FJsonValue>>&)> CallbackFunction /*= nullptr*/, const FString& Namespace /*= FString(TEXT("/"))*/)
{
NativeClient->Emit(EventName, Message, CallbackFunction, Namespace);
Expand Down
5 changes: 1 addition & 4 deletions Source/SocketIOClient/Public/SocketIOClientComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "Components/ActorComponent.h"
#include "SocketIONative.h"
#include "LatentActions.h"
#include "Runtime/Engine/Classes/Engine/LatentActionManager.h"
#include "SocketIOClientComponent.generated.h"

DECLARE_DYNAMIC_MULTICAST_DELEGATE(FSIOCEventSignature);
Expand Down Expand Up @@ -176,7 +176,6 @@ class SOCKETIOCLIENT_API USocketIOClientComponent : public UActorComponent
const FString& Namespace = FString(TEXT("/")),
UObject* WorldContextObject = nullptr);

#if WITH_EDITOR

/**
* Emit an event with a JsonValue message with a result callback directly into the event graph. This cannot be called from within blueprint functions.
Expand All @@ -194,8 +193,6 @@ class SOCKETIOCLIENT_API USocketIOClientComponent : public UActorComponent
USIOJsonValue* Message = nullptr,
const FString& Namespace = FString(TEXT("/")));

#endif // WITH_EDITOR

/**
* Bind an event, then respond to it with 'OnEvent' multi-cast delegate
*
Expand Down

0 comments on commit 0bc6e1f

Please sign in to comment.